Hi
    I have the model SDTicket and SDCi
SDTicket
has_many :service_desk_cis

SDCi
after_save :update_sd_ticket
belongs_to :sd_ticket
def update_sd_ticket
    self.sd_ticket.update_attribute("modified_by_id",#here I need value
from session)
end

I have a user controller in that session[:id] = current_user_id #here I
am setting current user id to session[:id]

     Could you please tell me how I can  access this value from SDCi
class above in the call back after_save

Thanks in advance
Sijo
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to