Class: ActiveRecord::Associations::Builder::HasMany
- Inherits:
-
CollectionAssociation
- Object
- Association
- CollectionAssociation
- ActiveRecord::Associations::Builder::HasMany
- Defined in:
- lib/active_record/associations/builder/has_many.rb
Overview
:nodoc:
Constant Summary
Constants inherited from CollectionAssociation
CollectionAssociation::CALLBACKS
Constants inherited from Association
Class Method Summary collapse
Methods inherited from CollectionAssociation
define_callback, define_callbacks, define_extensions, define_readers, define_writers, wrap_scope
Methods inherited from Association
add_destroy_callbacks, build, build_scope, check_dependent_options, create_reflection, define_accessors, define_callbacks, define_extensions, define_readers, define_validations, define_writers, validate_options, wrap_scope
Class Method Details
.macro ⇒ Object
5 6 7 |
# File 'lib/active_record/associations/builder/has_many.rb', line 5 def self.macro :has_many end |
.valid_dependent_options ⇒ Object
13 14 15 |
# File 'lib/active_record/associations/builder/has_many.rb', line 13 def self. [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception] end |
.valid_options(options) ⇒ Object
9 10 11 |
# File 'lib/active_record/associations/builder/has_many.rb', line 9 def self.() super + [:primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table, :foreign_type, :index_errors] end |