Permalink
Browse files

Call controller_path instance method so it can be easily overridden [#…

…1141 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 0eefa70 commit e69b506abd40222c87be28398c5191db160740cb David Masover committed with josh Sep 30, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/base.rb
@@ -1250,15 +1250,15 @@ 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)
path.split('/', 2).last
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

0 comments on commit e69b506

Please sign in to comment.