From bc481e667f62c3da466e4d5668722476c4705b61 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 15 Apr 2010 09:43:41 -0700 Subject: [PATCH] Highlight errors for fields when using an ActiveModel class in the form_for helper with Haml. --- .../lib/action_view/helpers/active_model_helper.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index a7650c0..48dc3b4 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -42,7 +42,7 @@ module ActionView end end - %w(tag content_tag to_date_select_tag to_datetime_select_tag to_time_select_tag).each do |meth| + %w(tag content_tag to_date_select_tag to_datetime_select_tag to_time_select_tag content_tag_with_haml).each do |meth| module_eval "def #{meth}(*) error_wrapping(super) end" end -- 1.7.0.3+GitX