activerecord-rescue_from_duplicate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -1
- data/lib/rescue_from_duplicate/active_record.rb +1 -2
- data/lib/rescue_from_duplicate/active_record/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e556184dcd2af6057a37ec28413793958ecda0
|
4
|
+
data.tar.gz: 51098dffb2d6b8d5b89b28f2f2664be4e4e34202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acaaf4ae2919df995ac930b8ea2bdefb400753fc18b3883c717bc8e204cf9c0d681c515cc20a9c04f0b8ba5f3c2ab7b09610d1c4e005a17cee0d0312c0d6937f
|
7
|
+
data.tar.gz: 423538cdfdfa906a50b17beeb2e697dcd7cc38cc23683a3c2b2092cf8c4b29a10d0b14f12e8be42bcbce5284cd74dd3eceee131df0db4f48b4d0b6e8a1fde9a4
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -7,8 +7,7 @@ module RescueFromDuplicate
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.missing_unique_indexes
|
10
|
-
|
11
|
-
klasses = ar_subclasses.select do |klass|
|
10
|
+
klasses = ::ActiveRecord::Base.descendants.select do |klass|
|
12
11
|
klass.validators.any? { |v| v.is_a?(::ActiveRecord::Validations::UniquenessValidator) || klass._rescue_from_duplicates.any? }
|
13
12
|
end
|
14
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-rescue_from_duplicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Malette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|