search for: update_sd_ticket

Displaying 1 result from an estimated 1 matches for "update_sd_ticket".

2008 Dec 13
3
session In the model
...ted models like Activity one of them So when ever an activity happens then also the value in session[:id] is to be go to modified_by_id field SDTicket has_many activities Activity belongs to SDTicket So for that what I am trying is in Activity model wrote in after_save like below after_save :update_sd_ticket def update_sd_ticket #Here I dont know how to get that session[:id] and fill that to modified_by_id self.service_desk_ticket.save end I also tried like to get session from a module by including it in activity model But that too not working.Could you please help to solve this Thanks...