Skip to content

Commit

Permalink
Updated numeric filters to use label.
Browse files Browse the repository at this point in the history
The numeric filter type was not using the value of the
'label' option or the attribute's translation from i18n.
It always used the method name.
  • Loading branch information
Mark Roghelia committed Sep 1, 2011
1 parent be2c80b commit 8ed4b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/view_helpers/filter_form_helper.rb
Expand Up @@ -82,7 +82,7 @@ def filter_numeric_input(method, options = {})
:onchange => "document.getElementById('#{method}_numeric').name = 'q[' + this.value + ']';"
filter_input = text_field current_filter, :size => 10, :id => "#{method}_numeric"

[ label(method),
[ label(method, options[:label]),
filter_select,
" ",
filter_input
Expand Down

0 comments on commit 8ed4b78

Please sign in to comment.