Sha256: 7c80e3a602feabe7068c4abb5b746b1a163975f22a1af67f8cf6901379d3b10d
Contents?: true
Size: 524 Bytes
Versions: 24
Compression:
Stored size: 524 Bytes
Contents
class Reactor::ResourceActionable::CreateEvent < Reactor::ResourceActionable::ActionEvent perform do if actionable_resource.valid? action_event "#{resource_name}_created", target: actionable_resource, attributes: params[resource_name] else action_event "#{resource_name}_create_failed", errors: actionable_resource.errors.as_json, attributes: params[resource_name], target: nested_resource end end end
Version data entries
24 entries across 24 versions & 1 rubygems