Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
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