Skip to content
Browse files

Do not need each here anymore

  • Loading branch information...
1 parent f6fc352 commit c048f0ba8361a80290c268a351543e00547950b2 @rafaelfranca rafaelfranca committed Jan 17, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_view/helpers/active_model_helper.rb
View
4 actionpack/lib/action_view/helpers/active_model_helper.rb
@@ -16,9 +16,7 @@ def object
end
end
- %w(content_tag).each do |meth|
- module_eval "def #{meth}(*) error_wrapping(super) end", __FILE__, __LINE__
- end
+ module_eval "def content_tag(*) error_wrapping(super) end", __FILE__, __LINE__
def tag(type, options, *)
tag_generate_errors?(options) ? error_wrapping(super) : super

0 comments on commit c048f0b

Please sign in to comment.
Something went wrong with that request. Please try again.