diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |