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