Applied rubocop.

This commit is contained in:
Martin Edenhofer 2017-12-04 01:34:27 +01:00
parent 0d1d86511f
commit 68b85efc24
2 changed files with 2 additions and 3 deletions

View file

@ -13,4 +13,4 @@ class SettingEsPipeline < ActiveRecord::Migration[5.1]
frontend: false
)
end
end
end

View file

@ -13,13 +13,13 @@ namespace :searchindex do
end
task :create, [:opts] => :environment do |_t, _args|
puts 'create indexes...'
# es with mapper-attachments plugin
number = SearchIndexBackend.info['version']['number'].to_s
if number =~ /^[2-4]\./ || number =~ /^5\.[0-5]\./
# create indexes
puts 'create indexes...'
SearchIndexBackend.index(
action: 'create',
data: {
@ -47,7 +47,6 @@ namespace :searchindex do
else
# create indexes
puts 'create indexes...'
SearchIndexBackend.index(
action: 'create',
data: {