I am using ruby on rails 2.3.5 .
I have user instance. On run time depending on certain conditions I want to add an after_save callback just for this instance.
The other issue is that this after_save should take a block or a proc as parameter.
What I want is something like this. This is psuedo code.
user = User.first
proc = Proc.new do puts 'this is foo' end
user.after_save proc