lib/magic_grid/definition.rb in magic_grid-0.10.0 vs lib/magic_grid/definition.rb in magic_grid-0.10.1

- old
+ new

@@ -105,10 +105,10 @@ if @options[:listener_handler].respond_to? :call @collection = @options[:listener_handler].call(@collection) else @options[:listeners].each_pair do |key, value| if @params[value] and not @params[value].to_s.empty? - @collection = @collection.where(key => @params[value]) + @collection = @collection.where(value => @params[value]) end end end else unless @options[:listeners].empty?