Class: Dart::Database::ManyToManyAssociation

Inherits:
ManyToManyAssociation show all
Includes:
NamingConventions::ManyToManyAssociationHelpers
Defined in:
lib/dart/database/many_to_many_association.rb

Overview

A Database::ManyToManyAssociation extends Dart::ManyToManyAssociation with naming conventions

Constant Summary

Constants inherited from Association

Association::MANY_TO_MANY_TYPE, Association::MANY_TO_ONE_TYPE, Association::ONE_TO_MANY_TYPE, Association::ONE_TO_ONE_TYPE

Instance Attribute Summary

Attributes inherited from Association

#model_class, #name, #scope

Instance Method Summary collapse

Methods included from NamingConventions::ManyToManyAssociationHelpers

#conventional_name, #disambiguate_name!, #left_foreign_key_is_conventional?, #name_and_right_foreign_key_are_conventional?, #name_is_conventional?, #right_foreign_key_is_conventional?

Methods included from NamingConventions::AssociationHelpers

#naming_conventions, #set_conventional_name!

Methods inherited from ManyToManyAssociation

#associated_table, #eql?, #hash, #join_associations, #join_table, #left_foreign_key, #right_foreign_key, #to_s, #type

Methods inherited from Association

#set_name!, #to_one?

Constructor Details

#initializeManyToManyAssociation

Returns a new instance of ManyToManyAssociation.



7
8
9
10
# File 'lib/dart/database/many_to_many_association.rb', line 7

def initialize(*)
  super
  set_conventional_name!
end