diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-07 17:04:56 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-07 17:04:56 -0700 |
commit | 12c271d1d297203a0cb4c09ef6da5be9954e87b6 (patch) | |
tree | 909b05e2e47288fadfb998bf44843e14bee56c0e /actionpack/lib/action_view/helpers | |
parent | 019ed5a7c0aac4f1a5924b4a575438f12be18f11 (diff) | |
download | rails-12c271d1d297203a0cb4c09ef6da5be9954e87b6.tar.gz rails-12c271d1d297203a0cb4c09ef6da5be9954e87b6.tar.bz2 rails-12c271d1d297203a0cb4c09ef6da5be9954e87b6.zip |
Ruby 1.9.2: implicit argument passing of super from method defined by define_method() is not supported
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/active_model_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index 4fd7f7d83c..3e6e62237d 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -278,9 +278,7 @@ module ActionView end %w(tag content_tag to_date_select_tag to_datetime_select_tag to_time_select_tag).each do |meth| - define_method meth do |*| - error_wrapping(super) - end + module_eval "def #{meth}(*) error_wrapping(super) end" end def error_wrapping(html_tag) |