sluggable-rails 0.1.3 → 0.1.4

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: 443d124efe9dbe90b8577e20c08d18ae05be73ae953453bc48d6ba860a75cd37
4
- data.tar.gz: 41a09ba89bed9544334309d1504ecebe3d9381f29be8412587620202032754eb
3
+ metadata.gz: f6642fdec2fa4e1446c0f420a4b74de6cfe81a695b8e5ea0b0d8ef636aaca04f
4
+ data.tar.gz: d3f8d5215cd75b92d5d1f42eb706a19c97ecd142bb6ba1054d1937b299216701
5
5
  SHA512:
6
- metadata.gz: 27d08b5d7950cd8a3ce54682dbd943f97377a19aeea57b9e99c299a8352255b8c85815021cbfc7f986aed673f96c3299a6d3b841d32f295bc5a8ee8b0b6be905
7
- data.tar.gz: b794ecac999d4ee9bdc3a219cc3c7de90dc253e3d3d41c6f4839b1599b72b7211c4015bed876f6e8fa86dbca14ef2ae8ba74e9092641a81b914d981438b004cb
6
+ metadata.gz: 14d3e1ed04fd8301d854f181cfd38a604fd238a455f617bb49ed7db34eca450db171c52269379dd1b863c61a8032e78037fb0ad663ea2661325f18fd6cf5946e
7
+ data.tar.gz: e4a4d15517bbccecb8aae456fd189dce2418c4b9209f646426cb6a31dc284584031d9db6f00e0a470081ecc130a63b6859014a13b2be2b91e70042d3e4e8f211
@@ -7,8 +7,8 @@ class Sluggable::Rails::Definitions
7
7
  @definitions[attribute.to_s.to_sym]
8
8
  end
9
9
 
10
- def add(attribute = :slug, origin:, separator: '-')
11
- @definitions[attribute.to_s.to_sym] = Sluggable::Rails::Definition.new attribute, origin: origin, separator: separator
10
+ def add(attribute = :slug, origin:, separator: '-', scope: nil)
11
+ @definitions[attribute.to_s.to_sym] = Sluggable::Rails::Definition.new attribute, origin: origin, separator: separator, scope: scope
12
12
  end
13
13
 
14
14
  def slugs(from:)
@@ -1,5 +1,5 @@
1
1
  module Sluggable
2
2
  module Rails
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos