3 class HasOneThroughAssociation
< HasManyThroughAssociation
5 def create_through_record(new_value
) #nodoc:
6 klass
= @reflection.through_reflection
.klass
8 current_object
= @owner.send(@reflection.through_reflection
.name
)
11 current_object
.update_attributes(construct_join_attributes(new_value
))
13 @owner.send(@reflection.through_reflection
.name
, klass
.send(:create, construct_join_attributes(new_value
)))
19 super(args
.merge(:limit => 1))