提交 e69b506a 编写于 作者: D David Masover 提交者: Joshua Peek

Call controller_path instance method so it can be easily overridden [#1141 state:resolved]

Signed-off-by: NJoshua Peek <josh@joshpeek.com>
上级 0eefa705
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册