lib/ransack_ext.rb in activeadmin-1.0.0.pre4 vs lib/ransack_ext.rb in activeadmin-1.0.0.pre5
- old
+ new
@@ -8,13 +8,13 @@
{'equals'=>'eq', 'greater_than'=>'gt', 'less_than'=>'lt'}.each do |old,current|
config.add_predicate old, arel_predicate: current
end
- config.add_predicate 'gteq_date',
+ config.add_predicate 'gteq_datetime',
arel_predicate: 'gteq',
formatter: ->(v) { v.beginning_of_day }
- config.add_predicate 'lteq_date',
+ config.add_predicate 'lteq_datetime',
arel_predicate: 'lt',
formatter: ->(v) { v + 1.day }
end