Commit 127df6ce by liyijie

fix: 设置resource名称

parent 1230df84
......@@ -176,7 +176,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
context: params,
}
authorize_if_policy_class policy_info, "#{action_name}?"
instance_variable_set("@#{resource_instance_name}", _resource)
instance_variable_set("@#{resource_instance_name}", resource)
end
def set_collection_ivar(collection)
......
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