rocket_cms 0.15.1 → 0.15.2
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 +3 -6
- 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: 1fd535e06ef979b666bbb1129627cbc7ed8d2075
|
4
|
+
data.tar.gz: e2b230f3d200930d85e442c6c92e272f2e636bdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b277dc36014939ab22eddaa8ffd073a9f6af751564123ab808cf1948e25f0bc4cde07297d2bc4fc8a7928116571728865f9da45ae34f665c89041e6b1ad56d
|
7
|
+
data.tar.gz: 61e1a0277cc87c000eb313467656f55bc488f5c6c70f792ecc4fc82362d1818aae601c25547193203b6499d953b087ba3e6fba553e3983ecc7d2d325be1c6667
|
data/Gemfile.lock
CHANGED
data/lib/manual_slug/mongoid.rb
CHANGED
@@ -23,14 +23,11 @@ module ManualSlug::Mongoid
|
|
23
23
|
skip_callback :create, :before, :build_slug
|
24
24
|
|
25
25
|
before_validation do
|
26
|
-
|
27
|
-
self._slugs = self._slugs.map{ |s| s.strip }.select {|s| !s.blank? }
|
28
|
-
end
|
29
|
-
|
30
|
-
if self._slugs.empty?
|
26
|
+
if self._slugs.blank?
|
31
27
|
self.build_slug
|
28
|
+
else
|
29
|
+
self._slugs = self._slugs.map{ |s| s.strip }.select {|s| !s.blank? }
|
32
30
|
end
|
33
|
-
|
34
31
|
true
|
35
32
|
end if callback
|
36
33
|
end
|
data/lib/rocket_cms/version.rb
CHANGED