Sha256: baa68b75f5300c5cb65a36b800409506dfa3c230f386b3601d3b481acf442947
Contents?: true
Size: 516 Bytes
Versions: 37
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true module ActiveRecord::Associations::Builder # :nodoc: class HasMany < CollectionAssociation #:nodoc: def self.macro :has_many end def self.valid_options(options) super + [:primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table, :foreign_type, :index_errors] end def self.valid_dependent_options [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception] end end end
Version data entries
37 entries across 37 versions & 4 rubygems