From 75fca04590a310bedc66a455d7508168ae932ba4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 9 Jan 2005 15:20:00 +0000 Subject: Added authentication framework to protect actions behind a condition and redirect on failure. See ActionController::Authentication for more. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/base.rb') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 851a382682..dbdce1bbfd 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -602,7 +602,7 @@ module ActionController #:nodoc: def action_methods action_controller_classes = self.class.ancestors.reject{ |a| [Object, Kernel].include?(a) } - action_controller_classes.inject([]) { |action_methods, klass| action_methods + klass.instance_methods(false) } + action_controller_classes.inject([]) { |action_methods, klass| action_methods + klass.public_instance_methods(false) } end def add_variables_to_assigns -- cgit v1.2.3