aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/helpers.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-30 16:35:22 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-30 16:35:22 +0100
commit0e063f435ce31a091d1097156172d551bd9d9d37 (patch)
treea6435316368400efc7985a2333f3551dd0b89a9d /actionpack/lib/action_controller/metal/helpers.rb
parentd6e2f5013cdc0aa830d167a84582f48dc636dc81 (diff)
downloadrails-0e063f435ce31a091d1097156172d551bd9d9d37.tar.gz
rails-0e063f435ce31a091d1097156172d551bd9d9d37.tar.bz2
rails-0e063f435ce31a091d1097156172d551bd9d9d37.zip
Fix some backward incompatible behavior on AM.
Diffstat (limited to 'actionpack/lib/action_controller/metal/helpers.rb')
-rw-r--r--actionpack/lib/action_controller/metal/helpers.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb
index 03ba4b3f83..ab2e0c020e 100644
--- a/actionpack/lib/action_controller/metal/helpers.rb
+++ b/actionpack/lib/action_controller/metal/helpers.rb
@@ -63,11 +63,6 @@ module ActionController
self.helpers_path = Array(value)
end
- def inherited(klass)
- klass.class_eval { default_helper_module! unless name.blank? }
- super
- end
-
# Declares helper accessors for controller attributes. For example, the
# following adds new +name+ and <tt>name=</tt> instance methods to a
# controller and makes them available to the view:
@@ -101,16 +96,6 @@ module ActionController
super(args)
end
- def default_helper_module!
- module_name = name.sub(/Controller$/, '')
- module_path = module_name.underscore
- helper module_path
- rescue MissingSourceFile => e
- raise e unless e.is_missing? "helpers/#{module_path}_helper"
- rescue NameError => e
- raise e unless e.missing_name? "#{module_name}Helper"
- end
-
# Extract helper names from files in app/helpers/**/*_helper.rb
def all_application_helpers
helpers = []