Class: Dart::Database::ManyToOneAssociation

Inherits:
ManyToOneAssociation show all
Includes:
NamingConventions::ManyToOneAssociationHelpers
Defined in:
lib/dart/database/many_to_one_association.rb

Overview

A Database::ManyToOneAssociation extends Dart::ManyToOneAssociation 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::ManyToOneAssociationHelpers

#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 ManyToOneAssociation

#associated_table, #to_one?, #type

Methods inherited from Dart::DirectAssociation

#eql?, #hash, #to_s

Methods inherited from Association

#set_name!, #to_one?

Constructor Details

#initializeManyToOneAssociation

Returns a new instance of ManyToOneAssociation.



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

def initialize(*)
  super
  set_conventional_name!
end