lib/ransack.rb in ransack-1.2.3 vs lib/ransack.rb in ransack-1.3.0
- old
+ new
@@ -8,10 +8,10 @@
class UntraversableAssociationError < StandardError; end;
end
Ransack.configure do |config|
Ransack::Constants::AREL_PREDICATES.each do |name|
- config.add_predicate name, arel_predicate: name
+ config.add_predicate name, :arel_predicate => name
end
Ransack::Constants::DERIVED_PREDICATES.each do |args|
config.add_predicate *args
end