Commit 9c8170e2ea65b856cea456e64fa83250d4ecf664
Exists in
master
and in
21 other branches
Merge pull request #310 from ka8725/master
Use string interpolation to get index name
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/reindex.rb
... | ... | @@ -7,7 +7,7 @@ module Searchkick |
7 | 7 | skip_import = options[:import] == false |
8 | 8 | |
9 | 9 | alias_name = searchkick_index.name |
10 | - new_name = alias_name + "_" + Time.now.strftime("%Y%m%d%H%M%S%L") | |
10 | + new_name = "#{alias_name}_#{Time.now.strftime('%Y%m%d%H%M%S%L')}" | |
11 | 11 | index = Searchkick::Index.new(new_name) |
12 | 12 | |
13 | 13 | clean_indices | ... | ... |