method

create!

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::AssociationCollection
create!(attrs = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/association_collection.rb, line 242
      def create!(attrs = {})
        create_record(attrs) do |record|
          yield(record) if block_given?
          record.save!
        end
      end
Register or log in to add new notes.