Applied rubocop.
This commit is contained in:
parent
0d1d86511f
commit
68b85efc24
2 changed files with 2 additions and 3 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue