mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Merge branch 'master' into 499-admin-wildcard-search
This commit is contained in:
commit
09930eada2
1 changed files with 11 additions and 0 deletions
|
@ -57,5 +57,16 @@ module Admin
|
||||||
|
|
||||||
params_copy
|
params_copy
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def fix_date_params
|
||||||
|
params_copy = params[:q].deep_dup
|
||||||
|
if params_copy['created_at_lteq'].present?
|
||||||
|
params_copy['created_at_lteq'] = Date.parse(params_copy['created_at_lteq']) + 1.day
|
||||||
|
end
|
||||||
|
|
||||||
|
params_copy
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue