Hello.
I need to pass a user_id that I have in a session var to a before_save
callback. Is it possible?
Thanks
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…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs