Sha256: 6b0486fff971d648ee78d674d417448b29c8a346f20eef234a8dbf4a4081d970
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module ActiveManageable module Methods module Create extend ActiveSupport::Concern included do include ActiveManageable::Methods::Auxiliary::ModelAttributes def create(attributes:) initialize_state(attributes: attributes) @target = model_class.new(attribute_values) authorize(record: @target) @target.save end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems