Skip to content

Commit

Permalink
Don't be stupid.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernie Miller committed Mar 14, 2011
1 parent 4fc9ab8 commit 3b9202b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/meta_search/helpers/form_builder.rb
Expand Up @@ -8,10 +8,8 @@ module FormBuilder

def self.included(base)
# Only take on the check_boxes method names if someone else (Hi, José!) hasn't grabbed them.
base.class_eval do
alias_method :check_boxes, :checks unless method_defined?(:check_boxes)
alias_method :collection_check_boxes, :collection_checks unless method_defined?(:collection_check_boxes)
end
alias_method :check_boxes, :checks unless method_defined?(:check_boxes)
alias_method :collection_check_boxes, :collection_checks unless method_defined?(:collection_check_boxes)
end

# Like other form_for field methods (text_field, hidden_field, password_field) etc,
Expand Down

0 comments on commit 3b9202b

Please sign in to comment.