aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/components.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/components.rb')
-rw-r--r--actionpack/lib/action_controller/components.rb2
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)