diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-03-14 13:11:07 -0300 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-14 12:07:15 -0500 |
commit | beeb02076a0b7a8bce59555cd486b96c59e231f0 (patch) | |
tree | c78eb751fbbfc74aea8e7d5800eac36aeb4b4d27 /actionpack/lib/action_view/helpers/active_model_helper.rb | |
parent | 3da9a08a7367eb389ddc03159bfbe5e9a8416e20 (diff) | |
download | rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.tar.gz rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.tar.bz2 rails-beeb02076a0b7a8bce59555cd486b96c59e231f0.zip |
Making escaped things more readable
Diffstat (limited to 'actionpack/lib/action_view/helpers/active_model_helper.rb')
-rw-r--r-- | actionpack/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 4e12cdab54..e3db2923f7 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -129,7 +129,7 @@ module ActionView if (obj = (object.respond_to?(:errors) ? object : instance_variable_get("@#{object}"))) && (errors = obj.errors[method]) content_tag("div", - (options[:prepend_text].html_safe << errors.first).safe_concat(options[:append_text]), + "#{options[:prepend_text]}#{ERB::Util.h(errors.first)}#{options[:append_text]}".html_safe, :class => options[:css_class] ) else |