app/models/run.rb
# self entity's children in tree model
# options are any options for find
self entity's children in tree model
options are any options for find
self entity ' s children in tree model options are any options for find
def children(options ={})
    options[:scope]  ||= ":self"
    options[:order]  ||= "seq"
    self.class.with_scope(:find => {:conditions => "#{self.run_id} = parent_run_id"}) do
      self.class.find(:all, options)
    end    
  end
def children ( options = { } ) options [ :scope ] ||= ":self" options [ :order ] ||= "seq" self . class . with_scope ( :find => { :conditions => "#{self.run_id} = parent_run_id" } ) do self . class . find ( :all , options ) end end
self entity's children in tree model
options are any options for find
self entity ' s children in tree model options are any options for find
# default options
options
<not_specific>