Permalink
Browse files

no need to module_eval here anymore

  • Loading branch information...
1 parent b184fab commit bf5f483cb25e648f437dc07adb072f2a10b11eb0 @amatsuda amatsuda committed with rafaelfranca Jan 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_view/helpers/active_model_helper.rb
@@ -16,7 +16,9 @@ def object
end
end
- module_eval "def content_tag(*) error_wrapping(super) end", __FILE__, __LINE__
+ def content_tag(*)
+ error_wrapping(super)
+ end
def tag(type, options, *)
tag_generate_errors?(options) ? error_wrapping(super) : super

0 comments on commit bf5f483

Please sign in to comment.