app/models/run.rb
# override for identifying an entity with id and its model
override for identifying an entity with id and its model
override for identifying an entity with id and its model
def to_param
    model_name = self.class.name
    if new_record?
      self.id_for_new ||= "new#{random_id}#{ID_Model_Separator}#{model_name}"
    else
       "#{self.id}#{ID_Model_Separator}#{model_name}"
    end
  end
def to_param model_name = self . class . name if new_record? self . id_for_new ||= "new#{random_id}#{ID_Model_Separator}#{model_name}" else "#{self.id}#{ID_Model_Separator}#{model_name}" end end
override for identifying an entity with id and its model
override for identifying an entity with id and its model