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 frontend: false
) )
end end
end end

View file

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