Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 390 Bytes
ActiveAdmin::ResourceController.class_eval do
before_filter :fix_datetime_filter_inclusion, :only => :index
private
def fix_datetime_filter_inclusion
resource_class.columns.each do |c|
next unless c.type == :datetime
if !params["q"].blank? && !params["q"]["#{c.name}_lte"].blank?
params["q"]["#{c.name}_lte"] += " 23:59:59.999999"
end
end
end
end