From e69b506abd40222c87be28398c5191db160740cb Mon Sep 17 00:00:00 2001 From: David Masover Date: Tue, 30 Sep 2008 12:07:21 -0500 Subject: [PATCH] Call controller_path instance method so it can be easily overridden [#1141 state:resolved] Signed-off-by: Joshua Peek --- actionpack/lib/action_controller/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 0e8d3efca4..976bd98bfa 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1250,7 +1250,7 @@ def default_template_name(action_name = self.action_name) action_name = strip_out_controller(action_name) end end - "#{self.class.controller_path}/#{action_name}" + "#{self.controller_path}/#{action_name}" end def strip_out_controller(path) @@ -1258,7 +1258,7 @@ def strip_out_controller(path) end def template_path_includes_controller?(path) - self.class.controller_path.split('/')[-1] == path.split('/')[0] + self.controller_path.split('/')[-1] == path.split('/')[0] end def process_cleanup -- GitLab