method

ensure_owner_is_not_new

ensure_owner_is_not_new()
private

No documentation available.

# File activerecord/lib/active_record/associations/association_collection.rb, line 467
        def ensure_owner_is_not_new
          if @owner.new_record?
            raise ActiveRecord::RecordNotSaved, "You cannot call create unless the parent is saved"
          end
        end