method
valid_options
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::Associations::Builder::HasMany
valid_options(options)private
No documentation available.
# File activerecord/lib/active_record/associations/builder/has_many.rb, line 9
def self.valid_options(options)
valid = super + [:counter_cache, :join_table, :index_errors]
valid += [:as, :foreign_type] if options[:as]
valid += [:through, :source, :source_type] if options[:through]
valid += [:ensuring_owner_was] if options[:dependent] == :destroy_async
valid += [:disable_joins] if options[:disable_joins] && options[:through]
valid
end