app/models/run.rb
# for default assoc_name of association; self is supposed to be its target model name.
for default assoc_name of association; self is supposed to be its target model name.
for default assoc_name of association ; self is supposed to be its target model name .
def to_assoc_name(assoc_target_type = :dependant)
    result = underscore.gsub(/\//, "__")
    assoc_target_type == :dependee and return result
    result.pluralize
  end
def to_assoc_name ( assoc_target_type = :dependant ) result = underscore . gsub ( / \/ / , "__" ) assoc_target_type == :dependee and return result result . pluralize end
for default assoc_name of association; self is supposed to be its target model name.
for default assoc_name of association ; self is supposed to be its target model name .
# class hierarchy separator "::" is changed to "/" by method "underscore" of RAILS # this character is not allowed by Ruby, so change them to "__"
assoc_target_type
<not_specific>