Callbacks with parameters

Hello.

I need to pass a user_id that I have in a session var to a before_save
callback. Is it possible?

Thanks

Pedro C. wrote:

I need to pass a user_id that I have in a session var to a before_save
callback. Is it possible?

Best way would be to add a user_id attr_accessor to the model,
and to set and access that.


We develop, watch us RoR, in numbers too big to ignore.

Thanks… I will do just that…