uniqable 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebeb80c142eafe8ded76be2dad828980e5f6e17a
4
- data.tar.gz: d7da8ec249afd915d8b1c7e30f44bef610428c88
3
+ metadata.gz: b68f76b3b88795ba68de78138fd7aca5afe838f0
4
+ data.tar.gz: c3f5d75e44f0f96c532d4a6c73df7986f8921fec
5
5
  SHA512:
6
- metadata.gz: 4d18f0badffd54ff6cc4347e2e431851830ef78066792802244bed138ccab1169a5223137562cf2d1c520aa270949c74b48fe7d6f97aeded123dbe19b6569118
7
- data.tar.gz: 3ad77d0b1cab20e176f89896c44258ed8eb9f3f1aac8fbe86e93768eb5b61ef30371f5fd7cfe32358558797be71191cb9e6d958a73e6c73af35d34825d61599a
6
+ metadata.gz: 3764a994583ea2e219f746f55671e224ea58ed0bd9cdb710621d780f064771bbfd4f88ffd7a8cdfc8dbb742e04c989b52225f52b212b73b20fe70805654b95f7
7
+ data.tar.gz: 6d337e6ef441ac0a7db557aea799fea790c8b3ba40e2bbc279ac57b78ed1fe3f2aa0a23be731b5ac9701bbb5dc1892634ff8230d569ed0666b2db50eef143a25
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uniqable (0.1.2)
4
+ uniqable (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -36,7 +36,7 @@ module Uniqable
36
36
  # @return [self]
37
37
  def find_uniqable(uid)
38
38
  where_sql = uniqable_fields.map{ |r| "#{table_name}.#{r} = :uid"}.join(' OR ')
39
- self.where(where_sql, uid: uid).take(1)
39
+ self.where(where_sql, uid: uid).take
40
40
  end
41
41
  end
42
42
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uniqable
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniqable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renat "MpaK" Ibragimov