From acb3d2cf755d6be35527d2ece57a5de415bb6cab Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 20 Feb 2005 00:02:02 +0000 Subject: Fixed internal calling git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/components.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/components.rb') diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 0d17d51ef8..148f7b9119 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -17,7 +17,7 @@ module ActionController #:nodoc: end def component_class(options) - options[:controller] ? (options[:controller].camelize + "Controller").constantize : self + options[:controller] ? (options[:controller].camelize + "Controller").constantize : self.class end def component_request(options) -- cgit v1.2.3