I'm trying to have a rails model observe another object (which acts as a subject). I saw that there is an update
method (which has different semantics) in ActiveRecord::Base
, but in order to use the Observable
module, I need to implement an update
method in my model so that I can be notified of changes to the subject.
Any thoughts on how this could be achieved?