Good notes posted by wiseleyb
RSS feed
wiseleyb -
February 10, 2011 - (<= v2.3.8)
3 thanks
Undocumented callbacks
Not sure why this isn’t documented… there are callbacks for before/after_add and before/after_remove. Example
has_many :things, :after_add => :set_things, :after_remove => :remove_things def set_things(thing) ... end def remove_things(thing) ... end