module Dart::NamingConventions::OneToManyAssociationHelpers
Public Instance Methods
conventional_name()
click to toggle source
Returns the name of a referenced association according to the naming convention
@return [String] the name of the referenced association
# File lib/dart/naming_conventions/one_to_many_association_helpers.rb, line 11 def conventional_name if conventional_foreign_key? associated_table else "#{naming_conventions.singular_association_name(foreign_key)}_#{child_table}" end end
name_is_conventional?()
click to toggle source
# File lib/dart/naming_conventions/one_to_many_association_helpers.rb, line 19 def name_is_conventional? name == associated_table end