app/models/run.rb
# split self's run to split_attrs since time
split self's run to split_attrs since time
split self ' s run to split_attrs since time
def split_run(time, split_attrs)
    transaction do
      fail unless delete time.ago(QTIME)
      split_runs = split_attrs.map do |attr| 
        new_run = self.create_run! time, attr.update(Split_from => self.send(Run_id))
        fail unless new_run 
      end
    end
    split_runs
  rescue
    return
  end
def split_run ( time , split_attrs ) transaction do fail unless delete time . ago ( QTIME ) split_runs = split_attrs . map do | attr | new_run = self . create_run! time , attr . update ( Split_from => self . send ( Run_id ) ) fail unless new_run end end split_runs rescue return end
split self's run to split_attrs since time
split self ' s run to split_attrs since time
time
<not_specific>
split_attrs
<not_specific>