class User < AR
user = User.new
Let's say that I have a user instance with me. After this record is
saved I want an after_save callback which would print the id of the
The only catch is that I am not allowed to change the User class. How
can I accomplish my goal? Is that even possible to add an after_save
callback on a particular instance object. Any metaprogramming hack.
I'm sure ruby does provide some tool.
This would be a trivial issue if I were allowed to change the User
class but I am not.