method
create!
create!(attrs = {})
public
Hide source
# File activerecord/lib/active_record/associations/association_collection.rb, line 252 def create!(attrs = {}) create_record(attrs) do |record| yield(record) if block_given? record.save! end end