Class: ActiveRecord::Associations::Builder::HasMany
- Inherits:
-
CollectionAssociation
- Object
- Association
- CollectionAssociation
- ActiveRecord::Associations::Builder::HasMany
- Defined in:
- activerecord/lib/active_record/associations/builder/has_many.rb
Overview
:nodoc:
Constant Summary
Constants inherited from CollectionAssociation
CollectionAssociation::CALLBACKS
Instance Attribute Summary
Attributes inherited from CollectionAssociation
#block_extension, #extension_module
Attributes inherited from Association
#model, #name, #options, #scope
Instance Method Summary collapse
Methods inherited from CollectionAssociation
#build, #define_callback, #define_readers, #define_writers, #extension_module_name, #initialize, #wrap_block_extension, #writable?
Methods inherited from Association
build, #build, #configure_dependency, #define_accessors, #define_readers, #define_writers, #initialize, #mixin, #validate_options
Constructor Details
This class inherits a constructor from ActiveRecord::Associations::Builder::CollectionAssociation
Instance Method Details
#macro ⇒ Object
3 4 5 |
# File 'activerecord/lib/active_record/associations/builder/has_many.rb', line 3 def macro :has_many end |
#valid_dependent_options ⇒ Object
11 12 13 |
# File 'activerecord/lib/active_record/associations/builder/has_many.rb', line 11 def [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception] end |
#valid_options ⇒ Object
7 8 9 |
# File 'activerecord/lib/active_record/associations/builder/has_many.rb', line 7 def super + [:primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache] end |