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
43 44 45 |
# File 'lib/cequel/record/validations.rb', line 43 def create!(attributes = {}, &block) new(attributes, &block).save! end |