1
0
Fork 0
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:
Akira Matsuda 2012-01-18 17:39:53 +09:00 committed by Rafael Mendonça França
parent b184fabb78
commit bf5f483cb2

View file

@ -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