rocket_cms 0.19.3 → 0.19.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/rocket_cms/models/mongoid/page.rb +5 -1
- 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: 72efab14a9ad20f6b0cc6415f3be3b395f196de0
|
4
|
+
data.tar.gz: 19baa6f0bd1af87e9829ff57fc3a7babdc24c9cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09486e1852faef937bf9e0f7c9268227835bae68d09d8f2a1406484ac863f6d8ad00c257e313afdf284572b58bfd9a7c2374021b111e3269a82f827b9654bc90'
|
7
|
+
data.tar.gz: e6af502b1223212fbd9a1ad80cf21faec0d398b9d93c16e9b20d2c90d537bebd56d4fc9bc9d6282a0482b26123c36a899565b7b5e7e510e18348b31695d90fe7
|
data/Gemfile.lock
CHANGED
@@ -11,6 +11,10 @@ module RocketCMS
|
|
11
11
|
has_and_belongs_to_many :menus, inverse_of: :pages
|
12
12
|
acts_as_nested_set
|
13
13
|
scope :sorted, -> { asc(:lft) }
|
14
|
+
|
15
|
+
before_save do
|
16
|
+
self.qregexp = read_attribute(:regexp) unless has_attribute?(:qregexp) || new_record?
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
def regexp=(value)
|
@@ -18,7 +22,7 @@ module RocketCMS
|
|
18
22
|
end
|
19
23
|
|
20
24
|
def regexp
|
21
|
-
|
25
|
+
has_attribute?(:qregexp) ? qregexp : read_attribute(:regexp)
|
22
26
|
end
|
23
27
|
end
|
24
28
|
end
|
data/lib/rocket_cms/version.rb
CHANGED