dependent-auto-rails 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f580a4dd1d2381f710091f77c3f788db32d52454cbbc15a8d19234cfac2b6cc
4
- data.tar.gz: 2b93ef9a7b4d3bf9a51040710f6f0234a5688286ea1f80b2dd77e16e46387f06
3
+ metadata.gz: d8a5de40e738a480461d249edc98b76df49778d58e77fee8a3a54f90ffa017ad
4
+ data.tar.gz: 8bbb14703a6e1a20da97cde693f05000f77202eae0e05ecbfe37d0fd7ce8d749
5
5
  SHA512:
6
- metadata.gz: 3cff57105377c3bce1c4d21a89201ee53b9a902041f24954ed7a6ad5df5d614adc409969538c9e7aaf4dc2f0c99f0f1daceff34764ce10084408257c51aa718f
7
- data.tar.gz: b07c8991a259bcf4e0bab63e11927b848a4ef138495f827a02a790c42b4ac52b52a2bd09ce3a09349d982556daef63220911ad7e16c83759a37fc8c839bede84
6
+ metadata.gz: 828ba4145c234101a34c753c6d247739f4ee97734a8ab1a5c065d443e5b60cdcb97713c7180d0fc317ba536760827363ec14cb8676e4b59bd628b0f38e00f4ad
7
+ data.tar.gz: 1efacf7ea4308f2afe9e7d998ed0fc8fa9e8e23bf06bd0d8ee484c10a7e4bc5ea3cc50a61588577ab8163854b123ae884204255362287e93b832f3396ce1d806
@@ -30,6 +30,7 @@ module ActiveRecord::Associations::Builder
30
30
  }
31
31
  )
32
32
  end
33
+ private_class_method :dynamic_reflection_options
33
34
 
34
35
  class DynamicReflectionOptionsHash < Hash
35
36
  def [](key)
@@ -1,12 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_record"
4
- require "active_support"
5
4
 
6
5
  ActiveSupport.on_load(:active_record) do
7
- require "dependent-auto-rails/activerecord/associations/builder/belongs_to"
8
- require "dependent-auto-rails/activerecord/associations/builder/has_one"
9
- require "dependent-auto-rails/activerecord/associations/builder/has_many"
10
6
  require "dependent-auto-rails/activerecord/associations/builder/association"
11
7
  end
12
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DependentAutoRails
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependent-auto-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
@@ -50,9 +50,6 @@ files:
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - lib/dependent-auto-rails/activerecord/associations/builder/association.rb
53
- - lib/dependent-auto-rails/activerecord/associations/builder/belongs_to.rb
54
- - lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb
55
- - lib/dependent-auto-rails/activerecord/associations/builder/has_one.rb
56
53
  - lib/dependent-auto-rails/dependent_auto_rails.rb
57
54
  - lib/dependent-auto-rails/version.rb
58
55
  homepage: https://github.com/joshuay03/dependent-auto-rails
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ActiveRecord::Associations::Builder
4
- class BelongsTo < SingularAssociation
5
- def self.valid_dependent_options
6
- [:auto, :destroy, :delete, :destroy_async]
7
- end
8
- private_class_method :valid_dependent_options
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ActiveRecord::Associations::Builder
4
- class HasMany < CollectionAssociation
5
- def self.valid_dependent_options
6
- [:auto, :destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception, :destroy_async]
7
- end
8
- private_class_method :valid_dependent_options
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ActiveRecord::Associations::Builder
4
- class HasOne < SingularAssociation
5
- def self.valid_dependent_options
6
- [:auto, :destroy, :destroy_async, :delete, :nullify, :restrict_with_error, :restrict_with_exception]
7
- end
8
- private_class_method :valid_dependent_options
9
- end
10
- end