class ActiveRecord::Associations::HasManyThroughAssociation
def create_record(attrs, force = true)
def create_record(attrs, force = true) ensure_owner_is_not_new transaction do object = @reflection.klass.new(attrs) add_record_to_target_with_callbacks(object) {|r| insert_record(object, force) } object end end