lib/ransack.rb in ransack-1.8.6 vs lib/ransack.rb in ransack-1.8.7
- old
+ new
@@ -12,10 +12,10 @@
Ransack.configure do |config|
Ransack::Constants::AREL_PREDICATES.each do |name|
config.add_predicate name, :arel_predicate => name
end
Ransack::Constants::DERIVED_PREDICATES.each do |args|
- config.add_predicate *args
+ config.add_predicate(*args)
end
end
require 'ransack/search'
require 'ransack/ransacker'