Sha256: ff41b6a94eb74ae7fa9be179573a11975f3633731b11968178ffae0bfad8ff25

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord::Associations::Builder
  class HasMany < CollectionAssociation
    def self.valid_dependent_options
      [:auto, :destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception, :destroy_async]
    end
    private_class_method :macro, :valid_options, :valid_dependent_options
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dependent-auto-rails-0.2.2 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
dependent-auto-rails-0.2.1 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
dependent-auto-rails-0.2.0 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
dependent-auto-rails-0.1.9 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
dependent-auto-rails-0.1.8 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
dependent-auto-rails-0.1.7 lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb