class ActiveRecord::Associations::Builder::HasMany
:nodoc:
:nodoc:
def self.macro
:nodoc:
def self.macro :has_many end
def self.valid_dependent_options
def self.valid_dependent_options [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception, :destroy_async] end
def self.valid_options(options)
def self.valid_options(options) valid = super + [:counter_cache, :join_table, :index_errors, :as, :through] valid += [:foreign_type] if options[:as] valid += [:source, :source_type, :disable_joins] if options[:through] valid += [:ensuring_owner_was] if options[:dependent] == :destroy_async valid end