Commit d5bc0ed0 by liyijie

feat: create不使用

parent 6dea3648
......@@ -111,6 +111,13 @@ class SimpleController::BaseController < ::InheritedResources::Base
def create_resource(object)
if defined?(RailsBpm) && object.respond_to?(:flowable_operate_user)
object.flowable_operate_user = @current_user
begin
object.generate_update_instance(
user: @current_user,
auto_submit: true,
)
rescue Bpm::NotConfigError => e
end
end
super(object)
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