From ea037ff55791a33d24773efd380b734f733c2815 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 31 May 2010 13:48:47 -0500 Subject: Base options cant live in lazy loaded helpers as they then wont be available to set for config --- actionpack/lib/action_view/helpers/active_model_helper.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'actionpack/lib/action_view/helpers/active_model_helper.rb') diff --git a/actionpack/lib/action_view/helpers/active_model_helper.rb b/actionpack/lib/action_view/helpers/active_model_helper.rb index 0cddd09eb0..8054de0af6 100644 --- a/actionpack/lib/action_view/helpers/active_model_helper.rb +++ b/actionpack/lib/action_view/helpers/active_model_helper.rb @@ -4,13 +4,6 @@ require 'active_support/core_ext/enumerable' require 'active_support/core_ext/object/blank' module ActionView - ActiveSupport.on_load(:action_view) do - class ActionView::Base - @@field_error_proc = Proc.new{ |html_tag, instance| "
#{html_tag}
".html_safe } - cattr_accessor :field_error_proc - end - end - module Helpers module ActiveModelHelper %w(input form error_messages_for error_message_on).each do |method| -- cgit v1.2.3