Commit 9e13a191 by liyijie

fix: 解决导出类定义的问题

parent 7e3c67e0
......@@ -115,6 +115,9 @@ class SimpleController::BaseController < ::InheritedResources::Base
@distinct_off = options.delete(:distinct_off)
@policy_class = options.delete(:policy_class) || self.name.sub(/Controller$/, 'Policy').safe_constantize
set_view_path view_path if view_path.present?
super(options)
unless self.method_defined? :importable_class
self.class_attribute :importable_class, instance_writer: false
self.importable_class =
......@@ -132,8 +135,6 @@ class SimpleController::BaseController < ::InheritedResources::Base
self.resource_class
end
set_view_path view_path if view_path.present?
super(options)
end
def set_view_path path
......
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