Class: DatastaxRails::Associations::Builder::HasAndBelongsToMany

Inherits:
CollectionAssociation show all
Defined in:
lib/datastax_rails/associations/builder/has_and_belongs_to_many.rb

Overview

:nodoc:

Constant Summary

Constants inherited from CollectionAssociation

CollectionAssociation::CALLBACKS

Instance Attribute Summary

Attributes inherited from Association

#model, #name, #options, #reflection

Instance Method Summary collapse

Methods inherited from CollectionAssociation

build, #writable?

Methods inherited from Association

build, #initialize, #mixin

Constructor Details

This class inherits a constructor from DatastaxRails::Associations::Builder::Association

Instance Method Details

#buildObject


5
6
7
8
9
10
# File 'lib/datastax_rails/associations/builder/has_and_belongs_to_many.rb', line 5

def build
  reflection = super
  define_destroy_hook
  check_for_join_column_family
  reflection
end