ancestry_uniqueness 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ancestry_uniqueness.rb +1 -1
- data/lib/ancestry_uniqueness/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: 9a49a299a68c570abc9ae5e65de2c45df9b3b6df
|
4
|
+
data.tar.gz: a9a0f89d6733e1b9d6ae483b18118d4b5de01d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1963b7f9f80656d4219b5ac05e4e4f874b46b48719409b6996a93ec007665eee28adef9d8cad2956658a5a211922d187dfe461f437f72a474f4f7f9ba0696b
|
7
|
+
data.tar.gz: 98b622e170e4d2bf6dd437506a7eb82f2d56784bef68ed9405f6c928a1fdd2e1c1302e906967c306af1a28cdbd62f4b097dcba232b7627d45e07d590b21a5d4a
|
data/lib/ancestry_uniqueness.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "ancestry_uniqueness/version"
|
2
2
|
|
3
|
-
class AncestryUniquenessValidator <
|
3
|
+
class AncestryUniquenessValidator < ActiveModel::EachValidator
|
4
4
|
|
5
5
|
def validate_each(record, attribute, value)
|
6
6
|
exclude_self = record.try(:id) ? ['id <> ?', record.id] : []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ancestry_uniqueness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abbe Keultjes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|