Commit 7e3c67e0 by liyijie

feat: 修复语法错误

parent afc23f83
...@@ -115,7 +115,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -115,7 +115,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
@distinct_off = options.delete(:distinct_off) @distinct_off = options.delete(:distinct_off)
@policy_class = options.delete(:policy_class) || self.name.sub(/Controller$/, 'Policy').safe_constantize @policy_class = options.delete(:policy_class) || self.name.sub(/Controller$/, 'Policy').safe_constantize
unless self.method_defined? :importable_class do unless self.method_defined? :importable_class
self.class_attribute :importable_class, instance_writer: false self.class_attribute :importable_class, instance_writer: false
self.importable_class = self.importable_class =
options.delete(:importable_class) || options.delete(:importable_class) ||
......
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