lib/unsafe_build_and_create.rb
# Same as unsafe_create, but raises an exception on error
# The analogy to create/create! is exact.
Same as unsafe_create, but raises an exception on error
The analogy to create/create. is exact.
Same as unsafe_create but raises an exception on error The analogy to create / create . is exact .
def unsafe_create!(attrs)
      record = unsafe_build(attrs)
      record.save!
      record
    end
def unsafe_create! ( attrs ) record = unsafe_build ( attrs ) record . save! record end
Same as unsafe_create, but raises an exception on error
The analogy to create/create!
Same as unsafe_create but raises an exception on error The analogy to create / create!
attrs
<not_specific>