Sha256: 65013bf4a2c1deef314ae17a5a7eba53bc99097fce63bd41f3dc3e6ee2e59501
Contents?: true
Size: 413 Bytes
Versions: 6
Compression:
Stored size: 413 Bytes
Contents
module ActiveRecord::Associations::Builder class HasMany < CollectionAssociation #:nodoc: def macro :has_many end def valid_options super + [:primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache] end def self.valid_dependent_options [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception] end end end
Version data entries
6 entries across 6 versions & 1 rubygems