class ActiveRecord::Associations::Builder::HasManyForActiveModel
Constants
- AR_CALLBACK_METHODS
Public Class Methods
define_callbacks(model, reflection)
click to toggle source
Calls superclass method
# File lib/active_record/associations/builder/has_many_for_active_model.rb, line 10 def self.define_callbacks(model, reflection) if AR_CALLBACK_METHODS.all? { |meth| self.respond_to?(meth) } super end end
valid_options(_options)
click to toggle source
Calls superclass method
# File lib/active_record/associations/builder/has_many_for_active_model.rb, line 6 def self.valid_options(_options) super + [:active_model, :target_ids] - [:through, :dependent, :source, :source_type, :counter_cache, :as] end
Public Instance Methods
valid_options()
click to toggle source
Calls superclass method
# File lib/active_record/associations/builder/has_many_for_active_model.rb, line 16 def valid_options super + [:active_model, :target_ids] - [:through, :dependent, :source, :source_type, :counter_cache, :as] end