rocket_cms 0.15.3 → 0.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/manual_slug/mongoid.rb +6 -2
- data/lib/rocket_cms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f57984f568b8a839e2e4ded174ec998d82263bd1
|
4
|
+
data.tar.gz: 4ab519fbad9e0f685553de36e3e1eb59b07f9150
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53779a5e300559c3a9661aa52c63e1c071d5c102eee994da1bf35a40371cadcc0cff9be6199b201180935fc858020419649d3bf465ee4174da0997047661e17b
|
7
|
+
data.tar.gz: 5bb951139b8f6a22098c7ecebf24d226c71a2c6bcc9cf9a11293c4481dee077c67b9d386bd1dac80964e8e3d86b6a19f575ce7e21d16c61eff4c6bfb1e6b876f
|
data/Gemfile.lock
CHANGED
data/lib/manual_slug/mongoid.rb
CHANGED
@@ -9,8 +9,12 @@ module ManualSlug::Mongoid
|
|
9
9
|
if slug.blank?
|
10
10
|
self._slugs = []
|
11
11
|
else
|
12
|
-
self._slugs.
|
13
|
-
|
12
|
+
if self._slugs.blank?
|
13
|
+
self._slugs = [slug]
|
14
|
+
else
|
15
|
+
self._slugs.delete(slug)
|
16
|
+
self._slugs << slug
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
16
20
|
|
data/lib/rocket_cms/version.rb
CHANGED