Sha256: 3522da057223f96b8ec8f8d319115aa6081a7f6715b8529b15852345bfb67763

Contents?: true

Size: 426 Bytes

Versions: 43

Compression:

Stored size: 426 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, :join_table]
    end

    def self.valid_dependent_options
      [:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception]
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
activerecord-4.1.16 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.16.rc1 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.15 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.15.rc1 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.14.2 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.14.1 lib/active_record/associations/builder/has_many.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activerecord-4.1.13/lib/active_record/associations/builder/has_many.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activerecord-4.1.13/lib/active_record/associations/builder/has_many.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activerecord-4.1.13/lib/active_record/associations/builder/has_many.rb
activerecord-4.1.14 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.14.rc2 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.14.rc1 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.13 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.13.rc1 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.12 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.12.rc1 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.11 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.10 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.10.rc4 lib/active_record/associations/builder/has_many.rb
activerecord-4.1.10.rc3 lib/active_record/associations/builder/has_many.rb