module Mince::Model::Persistence::ClassMethods

Public Instance Methods

create(data) click to toggle source

Creates a record with the given field values

# File lib/mince/model/persistence.rb, line 19
def create(data)
  new(data).tap(&:save)
end