method

_create_record

_create_record(attributes, raise_error = false)
private

No documentation available.

# File activerecord/lib/active_record/associations/singular_association.rb, line 76
        def _create_record(attributes, raise_error = false)
          record = build_record(attributes)
          yield(record) if block_given?
          saved = record.save
          set_new_record(record)
          raise RecordInvalid.new(record) if !saved && raise_error
          record
        end