Displaying 1 result from an estimated 1 matches for "ey5qd".
Did you mean:
3y5q
2006 Jan 25
2
Update join_table attributes
...he objects.
The problem, though, is that I can''t update the extra columns in the
join
table using update_attributes. This is a well documented shortcoming,
and
the solution everyone talks about is to override the update_attributes
code.
The code (see the comments @ http://tinyurl.com/ey5qd) starts like so:
module ActiveRecord
module Associations
class HasAndBelongsToManyAssociation
def update_attributes(record, join_attributes = {})
The problem is, and here is why I''m writing, that this code isn''t called
when you call update_attributes. In fact, if yo...