lib/sn_foil/contexts/index_context.rb in snfoil-0.4.3 vs lib/sn_foil/contexts/index_context.rb in snfoil-0.5.0
- old
+ new
@@ -13,11 +13,11 @@
end
class_methods do
attr_reader :i_searcher, :i_setup_index_hooks
- def index(params: {}, user: nil, **options)
- new(user).index(**options, params: params)
+ def index(params: {}, entity: nil, **options)
+ new(entity).index(**options, params: params)
end
def searcher(klass = nil)
@i_searcher = klass
end