Ruby on Rails
Friday, June 1, 2012
Hello all first post so be kind,
Is there a way to use association callbacks on model observers? For instance if I have a has_and_belongs_to_many association on my model I can add a private method for instance to be called on the :after_add, is there a way to move this to an observer I have created for this model?
Thanks
.FxN
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ZluVqcrrkagJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment