diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-05-31 13:48:47 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-05-31 13:48:47 -0500 |
commit | ea037ff55791a33d24773efd380b734f733c2815 (patch) | |
tree | 338ee75045f724dabc089e8b167fe292c87ffcc8 /actionpack/lib/action_view/base.rb | |
parent | 1854209bb3d06bc81034dfec4ef75412700eae74 (diff) | |
download | rails-ea037ff55791a33d24773efd380b734f733c2815.tar.gz rails-ea037ff55791a33d24773efd380b734f733c2815.tar.bz2 rails-ea037ff55791a33d24773efd380b734f733c2815.zip |
Base options cant live in lazy loaded helpers as they then wont be available to set for config
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 735398d972..f4af763afe 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -165,6 +165,10 @@ module ActionView #:nodoc: cattr_accessor :debug_rjs @@debug_rjs = false + # Specify the proc used to decorate input tags that refer to attributes with errors. + cattr_accessor :field_error_proc + @@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe } + class_attribute :helpers remove_method :helpers attr_reader :helpers |