Sha256: 7537e7d99bb2d60f432ac32dabfe656b7a2001efac410c2fb04fd0e8570786a3

Contents?: true

Size: 323 Bytes

Versions: 8

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord::Associations::Builder
  class HasOne < SingularAssociation
    def self.valid_dependent_options
      [:auto, :destroy, :destroy_async, :delete, :nullify, :restrict_with_error, :restrict_with_exception]
    end
    private_class_method :valid_dependent_options
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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