Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4577af5

Browse files
author
Kyrylo Skriabin
committedApr 18, 2017
DateTimeRangeInput fields names fixed.
Now filtering by time (hours and minutes) is applied correctly.
1 parent f59ebdd commit 4577af5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ def input_html_options(input_name = gt_input_name)
1010
options[:class] = html_class
1111
end
1212
end
13+
14+
def gt_input_name
15+
"#{method}_gteq"
16+
end
17+
18+
def lt_input_name
19+
"#{method}_lteq"
20+
end
1321
end
1422
end
1523
end

0 commit comments

Comments
 (0)
Please sign in to comment.