Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0e3700364c
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.408 kb
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 valid_dependent_options
[:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception]
end
end
end
Jump to Line
Something went wrong with that request. Please try again.