dependent-auto-rails 0.1.3 → 0.1.5
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 +4 -4
- data/lib/dependent-auto-rails/activerecord/associations/builder/association.rb +1 -0
- data/lib/dependent-auto-rails/version.rb +1 -1
- data/lib/dependent-auto-rails.rb +11 -0
- metadata +3 -7
- data/lib/dependent-auto-rails/activerecord/associations/builder/belongs_to.rb +0 -10
- data/lib/dependent-auto-rails/activerecord/associations/builder/has_many.rb +0 -10
- data/lib/dependent-auto-rails/activerecord/associations/builder/has_one.rb +0 -10
- data/lib/dependent-auto-rails/dependent_auto_rails.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15f2727d8f6862ab56a05007412045843f69c69e88f0d12772e339c10b70e93b
|
4
|
+
data.tar.gz: 5cd26614eca9b617e50fe4ab32cda5dcef69e425037612a4a2bc43675f1e5cdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b01ed5650b3ac1667c72f350c9ab1ced6814fe77f6310328378cb8e9dae70b1bbe88366fd805c5cf64fb7ad66b7d5043717612974998c722904e62da52792f7
|
7
|
+
data.tar.gz: 300d41e5b3b117090639f105bf3682881de682631775fc7485ecf9a8b8392fa67762df99fd4c69bf1b324505c713a0864f5d67c6976395dc5b3e41558d01f679
|
@@ -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.
|
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
|