mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
no need to module_eval here anymore
This commit is contained in:
parent
b184fabb78
commit
bf5f483cb2
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ module ActionView
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue