sluggable-rails 0.1.5 → 0.1.6

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: c38b59bf2edd9acb8300d9e37832e4120939b864f2f65d1f9702a8f49c12aabe
4
- data.tar.gz: 277eb4281f2b13f19120873d0eab09bb1075c618d5ab7488f5a11f097f24aab4
3
+ metadata.gz: 119c5999bc97c3df972a12b9d71dc0fe609ba931444ee9c732a81247655ef6ab
4
+ data.tar.gz: 145e69b9f8a1346534f0e54eb2c11265652aa59830d4440d270b115b9859995b
5
5
  SHA512:
6
- metadata.gz: e7bea5adb515c009394a298ffbf4853aa5f46e555f3f40bd8a2eefbaec110e9bf75d077b216a6320b354937aeab735b3ce8304ddea7cd99dec1812a10b3ef437
7
- data.tar.gz: 771331ee4fcb571f7ee2b161e4f2aa55a956e1cf0eddcbe52692f89a98dd1093170126e0906a4ad59bc4bd820af713e379878f09ab1f60664991dcdb19b0a332
6
+ metadata.gz: eee9b475c5e314d931941b9faed961d8a3dc9d7c203fe2e838d50e31c5b4924226793dece983da694c97950e5a40aeecd4e84bbd4f75f7b8e2c27dbb5e912980
7
+ data.tar.gz: 8f17a5ab3f77f6f32e584490e5954780b770c330c797739ded45e83abe6a808beadfc9c6c8e21252fb569afca4297cf6f7213e0fc9089277e81ba4dfad11f352
@@ -21,6 +21,6 @@ class Sluggable::Rails::Definition
21
21
  end
22
22
 
23
23
  def scope=(v)
24
- @scope = [v].flatten.map{ |attribute| :"#{attribute}" }.compact.uniq
24
+ @scope = [v].flatten.map{ |attribute| attribute.present? ? :"#{attribute}" : nil }.compact.uniq
25
25
  end
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module Sluggable
2
2
  module Rails
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sluggable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails