Commit 5e1e2229658c4654846415f8fa4e4e01f83c4b8b
1 parent
74d980e0
Exists in
master
and in
21 other branches
Cleaner code
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
lib/searchkick/reindex.rb
@@ -31,8 +31,7 @@ module Searchkick | @@ -31,8 +31,7 @@ module Searchkick | ||
31 | end | 31 | end |
32 | end | 32 | end |
33 | else | 33 | else |
34 | - i = Tire::Index.new(alias_name) | ||
35 | - i.delete | 34 | + tire.index.delete |
36 | response = Tire::Alias.create(name: alias_name, indices: [new_index]) | 35 | response = Tire::Alias.create(name: alias_name, indices: [new_index]) |
37 | end | 36 | end |
38 | 37 |