module ActiveShotgun::Model::Write::ClassMethods

Public Instance Methods

create(create_attributes) click to toggle source
# File lib/active_shotgun/model/write.rb, line 57
def create(create_attributes)
  new_entity = new
  new_entity.mass_assign(create_attributes)
  new_entity.save
  new_entity
end
create!(create_attributes) click to toggle source
# File lib/active_shotgun/model/write.rb, line 64
def create!(create_attributes)
  new_entity = new
  new_entity.mass_assign(create_attributes)
  new_entity.save!
  new_entity
end