Commit bf00a7d89af5e5a2456719c3aa24f9cd9b541627

Authored by Andrew
1 parent 97fa0caf

Use unless [skip ci]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick.rb
... ... @@ -84,7 +84,7 @@ module Searchkick
84 84 klass = model
85 85  
86 86 # make Searchkick.search(index_name: [Product]) and Product.search equivalent
87   - if !klass
  87 + unless klass
88 88 index_name = Array(options[:index_name])
89 89 if index_name.size == 1 && index_name.first.respond_to?(:searchkick_index)
90 90 klass = index_name.first
... ...