From 9f86e66b7ca475680d2ab847e93ff8741cb9e62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Thu, 31 Dec 2020 11:52:52 +0100 Subject: [PATCH] fixup! sauvegarde du mail dans Elasticsearch --- Gemfile | 2 ++ Gemfile.lock | 2 ++ config/application.rb | 1 + 3 files changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index f2e026f..af4b3f0 100644 --- a/Gemfile +++ b/Gemfile @@ -26,6 +26,8 @@ gem 'jbuilder', '~> 2.7' # gem 'image_processing', '~> 1.2' gem 'elasticsearch-persistence' +gem 'elasticsearch-rails' + # gem 'dry-types' gem 'dry-struct' diff --git a/Gemfile.lock b/Gemfile.lock index 1e4a865..e550805 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -121,6 +121,7 @@ GEM elasticsearch (~> 7) elasticsearch-model (= 7.1.1) hashie + elasticsearch-rails (7.1.1) elasticsearch-transport (7.10.0) faraday (~> 1) multi_json @@ -263,6 +264,7 @@ DEPENDENCIES capybara (>= 2.15) dry-struct elasticsearch-persistence + elasticsearch-rails jbuilder (~> 2.7) listen (~> 3.2) pry diff --git a/config/application.rb b/config/application.rb index cbf9082..4d74159 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,6 +1,7 @@ require_relative 'boot' require 'rails/all' +require 'elasticsearch/rails/instrumentation' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production.