sluggable-rails 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 17b9efd9689c4f2a8e4b7e43b9fc548bba77a991783df6ed0c33b17dc7098c0e
4
- data.tar.gz: 9e94db4d0cb5ca8397cb60c23a92070757cd5439abb6e0b0b04ba4c14d685ec6
3
+ metadata.gz: 10da458cda94abd21d65c946bf19d564a377fc996d649d37632e0155923e66fa
4
+ data.tar.gz: 2fc77bf0781eb764734f71efcb9e3e415ad2df644a26e3b7c19c56201e7e62b6
5
5
  SHA512:
6
- metadata.gz: 3dfa0e1a89c7ad121fd63aed9ff6dd2dfddcc5e24873a51d8d91e86b73dbf1e07672db0b13285e5c84ea6f4023769f68836a29d039594eb9033ab469c708689f
7
- data.tar.gz: 0d32122dd202e54509ec30c199a51fa180c0d3fe732b32b8d3e032b7bbb093785d61da5fe54ed034af00e8148629da611548d3d9b4f34c929a211c81891dab6a
6
+ metadata.gz: bbbd300753dfcc995509e1d0f7cbf7d47433eb1459738ababe7755c90576b6ec88ba908fb911dd8d7bb07eaf3d7abbd0471601d19a502771c1033576e6a7cbfd
7
+ data.tar.gz: be35e7d764ee42d6f777e2c1934941f9a86b9989f708c8f56f5aaca53dc9445e6e2c802bdccb4668ee2aeb7747196bc932bb984a8c965b59d65aae49d80ef183
@@ -68,7 +68,7 @@ class Sluggable::Rails::Slug < String
68
68
  end
69
69
 
70
70
  def unique?
71
- found = record.class.find_by (definition.attribute => self.to_s).merge(scope)
71
+ found = record.class.find_by({ definition.attribute => self.to_s }.merge(scope))
72
72
  !found || found.id == record.id
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  module Sluggable
2
2
  module Rails
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sluggable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos