uniqable 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uniqable.rb +1 -1
- data/lib/uniqable/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: 4291fffdee96aa5e85cc2ea3207125e104bf544d
|
4
|
+
data.tar.gz: a9fc14ee36417858c15a2079d550c0175351ab6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 180a1eebaccd029ce8cbdbebadc96a9994993ed73b3da0b8697d616d81c7f4ecc9f02d999af35cf428c194584414cb692ce3df6ea9f4500abbac2d3ea60c1dc3
|
7
|
+
data.tar.gz: d4d0f5f90ae81f5a542d0ae895fb0ec23f351b05fa70c75924548a88890cb486f8734e0cf8953814f391c0091391708149a4630f002120577fe40569be4c84f7
|
data/lib/uniqable.rb
CHANGED
@@ -34,7 +34,7 @@ module Uniqable
|
|
34
34
|
def where_uniqable(uid)
|
35
35
|
where_sql = key_uid?(uid) ?
|
36
36
|
uniqable_fields.map { |r| "#{table_name}.#{r} = :uid" }.join(' OR ') :
|
37
|
-
"#{self.primary_key} = :uid"
|
37
|
+
"#{table_name}.#{self.primary_key} = :uid"
|
38
38
|
where(where_sql, uid: uid)
|
39
39
|
end
|
40
40
|
|
data/lib/uniqable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uniqable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renat "MpaK" Ibragimov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|