blob: 429def5455666fe8eaca793ccf458b3a8eb1d9cb (
plain) (
tree)
|
|
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, :automatic_inverse_of, :counter_cache]
end
def valid_dependent_options
[:destroy, :delete_all, :nullify, :restrict, :restrict_with_error, :restrict_with_exception]
end
end
end
|