dependent-auto-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependent-auto-rails/activerecord/associations/builder/association.rb +1 -0
- data/lib/dependent-auto-rails/dependent_auto_rails.rb +0 -4
- data/lib/dependent-auto-rails/version.rb +1 -1
- metadata +1 -4
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8a5de40e738a480461d249edc98b76df49778d58e77fee8a3a54f90ffa017ad
|
4
|
+
data.tar.gz: 8bbb14703a6e1a20da97cde693f05000f77202eae0e05ecbfe37d0fd7ce8d749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828ba4145c234101a34c753c6d247739f4ee97734a8ab1a5c065d443e5b60cdcb97713c7180d0fc317ba536760827363ec14cb8676e4b59bd628b0f38e00f4ad
|
7
|
+
data.tar.gz: 1efacf7ea4308f2afe9e7d998ed0fc8fa9e8e23bf06bd0d8ee484c10a7e4bc5ea3cc50a61588577ab8163854b123ae884204255362287e93b832f3396ce1d806
|
@@ -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
|
|
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.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
|