search for: action_d

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

Did you mean: actionid
2007 Sep 21
1
Temporary disabling after_update
...the inquiry. Action.update_all("latest = ''''", ["inquiry_id = ?", self.inquiry_id]) #find the latest action latest_action = Action.find(:first, :conditions => ["deleted <> 1 and inquiry_id = ?", self.inquiry_id], :order => "action_date DESC, id DESC") #mark ''Y'' to the latest action. latest_action.update_attribute("latest", "Y") if latest_action end end Model "Inquiry" has many "actions", so I want to maintain the field called "latest" to indicat...