Displaying 1 result from an estimated 1 matches for "log_add".
Did you mean:
log_addr
2006 Jan 13
1
association callbacks
...ons.each{ |association|
if association.macro == :has_and_belongs_to_many
#add_callback
add_callback = "before_add_for_#{association.name}"
class_inheritable_reader(add_callback.to_sym)
write_inheritable_array(add_callback.to_sym, [:log_add])
#remove_callback
remove_callback = "before_remove_for_#{association.name}"
class_inheritable_reader(remove_callback.to_sym)
write_inheritable_array(remove_callback.to_sym, [:log_remove])
end
}
end
end#end ClassMe...