Module: Cequel::Record::Validations::ClassMethods
- Defined in:
- lib/cequel/record/validations.rb
Overview
Validation-related methods exposed on Record class singletons
Instance Method Summary collapse
-
#create!(attributes = {}) {|record| ... } ⇒ Record
Attempt to create a new record, or raise an exception otherwise.
Instance Method Details
#create!(attributes = {}) {|record| ... } ⇒ Record
Attempt to create a new record, or raise an exception otherwise
44 45 46 |
# File 'lib/cequel/record/validations.rb', line 44 def create!(attributes = {}, &block) new(attributes, &block).save! end |