From bf5f483cb25e648f437dc07adb072f2a10b11eb0 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 18 Jan 2012 17:39:53 +0900 Subject: no need to module_eval here anymore --- actionpack/lib/action_view/helpers/active_model_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index 973135e2ea..1187956081 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -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 -- cgit v1.2.3