Module: Toy::Validations::ClassMethods

Defined in:
lib/toy/validations.rb

Instance Method Summary collapse

Instance Method Details

#create!(attrs = {}) ⇒ Object



12
13
14
# File 'lib/toy/validations.rb', line 12

def create!(attrs={})
  new(attrs).tap { |doc| doc.save! }
end