Commit 85af9c63 by liyijie

fix: local_prefixes 在class << self 中不需要使用self. 来定义

parent 9d4e4550
...@@ -104,7 +104,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -104,7 +104,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
end end
# 查找template的时候,能够查找到 # 查找template的时候,能够查找到
def self.local_prefixes def local_prefixes
@view_path.present? ? super.unshift(@view_path) : super @view_path.present? ? super.unshift(@view_path) : super
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment