dependent-auto-rails 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f580a4dd1d2381f710091f77c3f788db32d52454cbbc15a8d19234cfac2b6cc
4
- data.tar.gz: 2b93ef9a7b4d3bf9a51040710f6f0234a5688286ea1f80b2dd77e16e46387f06
3
+ metadata.gz: 15f2727d8f6862ab56a05007412045843f69c69e88f0d12772e339c10b70e93b
4
+ data.tar.gz: 5cd26614eca9b617e50fe4ab32cda5dcef69e425037612a4a2bc43675f1e5cdb
5
5
  SHA512:
6
- metadata.gz: 3cff57105377c3bce1c4d21a89201ee53b9a902041f24954ed7a6ad5df5d614adc409969538c9e7aaf4dc2f0c99f0f1daceff34764ce10084408257c51aa718f
7
- data.tar.gz: b07c8991a259bcf4e0bab63e11927b848a4ef138495f827a02a790c42b4ac52b52a2bd09ce3a09349d982556daef63220911ad7e16c83759a37fc8c839bede84
6
+ metadata.gz: 6b01ed5650b3ac1667c72f350c9ab1ced6814fe77f6310328378cb8e9dae70b1bbe88366fd805c5cf64fb7ad66b7d5043717612974998c722904e62da52792f7
7
+ data.tar.gz: 300d41e5b3b117090639f105bf3682881de682631775fc7485ecf9a8b8392fa67762df99fd4c69bf1b324505c713a0864f5d67c6976395dc5b3e41558d01f679
@@ -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,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DependentAutoRails
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_record"
4
+
5
+ ActiveSupport.on_load(:active_record) do
6
+ require_relative "dependent-auto-rails/activerecord/associations/builder/association"
7
+ end
8
+
9
+ module DependentAutoRails
10
+ class Error < StandardError; end
11
+ 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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
@@ -49,20 +49,16 @@ files:
49
49
  - CODE_OF_CONDUCT.md
50
50
  - LICENSE.txt
51
51
  - README.md
52
+ - lib/dependent-auto-rails.rb
52
53
  - 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
- - 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
59
56
  licenses:
60
57
  - MIT
61
58
  metadata:
62
- allowed_push_host: https://rubygems.org
63
59
  homepage_uri: https://github.com/joshuay03/dependent-auto-rails
64
60
  source_code_uri: https://github.com/joshuay03/dependent-auto-rails
65
- changelog_uri: https://github.com/joshuay03/dependent-auto-rails/CHANGELOG.md
61
+ changelog_uri: https://github.com/joshuay03/dependent-auto-rails/blob/master/CHANGELOG.md
66
62
  post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
@@ -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
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "active_record"
4
- require "active_support"
5
-
6
- 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
- require "dependent-auto-rails/activerecord/associations/builder/association"
11
- end
12
-
13
- module DependentAutoRails
14
- class Error < StandardError; end
15
- end