Class: ActiveRecord::Associations::Builder::CollectionAssociation
- Inherits:
-
Association
- Object
- Association
- ActiveRecord::Associations::Builder::CollectionAssociation
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/builder/collection_association.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary collapse
- CALLBACKS =
[:before_add, :after_add, :before_remove, :after_remove]
Constants inherited from Association
Class Method Summary collapse
Methods inherited from Association
Class Method Details
.define_callbacks(model, reflection) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/builder/collection_association.rb', line 13 def self.define_callbacks(model, reflection) super name = reflection.name = reflection. CALLBACKS.each { |callback_name| define_callback(model, callback_name, name, ) } end |