search for: taskinst

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

Did you mean: taskinfo
2008 Feb 19
0
Issue with Observers and has_one association...
...for the has_one association isn''t even being executed. On the other hand, when I replace the has_one association with just a hand crafted method, it does get called correctly. So the following does not work: class Task has_one :current_instance, :class_name => ''TaskInstance'', :foreign_key => ''task_id'', :order => ''start_at DESC'', :conditions => ''end_at IS NULL'' but when replaced with the follwoing, it does work. def current_instance TaskInstance.find(:f...