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 +4 -4
- data/lib/sluggable/rails/definitions.rb +2 -2
- data/lib/sluggable/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6642fdec2fa4e1446c0f420a4b74de6cfe81a695b8e5ea0b0d8ef636aaca04f
|
4
|
+
data.tar.gz: d3f8d5215cd75b92d5d1f42eb706a19c97ecd142bb6ba1054d1937b299216701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:)
|