Displaying 2 results from an estimated 2 matches for "modified_by_id".
2008 Dec 13
3
session In the model
Hi
i have the model SDTicket which has a field modified_by_id and it has
to take data from session[:id] Now this SDTicket model has many
associated 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 th...
2008 Sep 25
1
question about exception
Hi
In the controller I have the function
def convert_sd_ticket_to_incident
ServiceDeskTicket.close_ticket(sd_id,created_by_id,modified_by_id)
Incident.convert_sd_ticket_to_incident(sd_id,created_by_id,modified_by_id)
end
Now in the ServiceDeskTicket model
def self.close_ticket(sd_id,created_by,modified_by)
begin
ActiveRecord::Base.transaction do
sd_ticket=self.find(sd_id)
sd_ticket.service_desk_status_histo...