Skip to content

Commit

Permalink
Merge pull request activeadmin#1058 from scrooloose/fix_substitution
Browse files Browse the repository at this point in the history
fix a bug in AA::Inputs::FilterSelectInput#method
  • Loading branch information
pcreux committed Feb 21, 2012
2 parents 7a8c665 + f7ecea2 commit 3328134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/inputs/filter_select_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def input_options
end

def method
super.to_s.gsub('_id','').to_sym
super.to_s.sub(/_id$/,'').to_sym
end

def extra_input_html_options
Expand Down

0 comments on commit 3328134

Please sign in to comment.