Class: Dart::Database::OneToManyAssociation

Inherits:
OneToManyAssociation show all
Includes:
NamingConventions::OneToManyAssociationHelpers
Defined in:
lib/dart/database/one_to_many_association.rb

Overview

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

Constant Summary

Constants inherited from Dart::DirectAssociation

Dart::DirectAssociation::ATTRIBUTES

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::OneToManyAssociationHelpers

#conventional_name, #name_is_conventional?

Methods included from NamingConventions::DirectAssociationHelpers

#conventional_foreign_key?, #conventional_parent?, #conventional_primary_key?

Methods included from NamingConventions::AssociationHelpers

#naming_conventions, #set_conventional_name!

Methods inherited from OneToManyAssociation

#associated_table, #type

Methods inherited from Dart::DirectAssociation

#eql?, #hash, #to_s

Methods inherited from Association

#set_name!, #to_one?

Constructor Details

#initializeOneToManyAssociation

Returns a new instance of OneToManyAssociation.



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

def initialize(*)
  super
  set_conventional_name!
end