lib/sn_foil/contexts/index_context.rb in snfoil-0.4.1 vs lib/sn_foil/contexts/index_context.rb in snfoil-0.4.2

- old
+ new

@@ -36,16 +36,16 @@ def setup_index_hooks self.class.i_setup_index_hooks || [] end - def index(params:, **options) + def index(**options) options[:action] = :index options = before_setup_index(**options) authorize(nil, :index?, **options) options.fetch(:searcher) { searcher } .new(scope: scope.resolve) - .search(params: params) + .search(options.fetch(:params) { {} }) end def setup_index(**options) options end