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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3d4d9c8700756d83f02d70c479f3d595431accf
4
- data.tar.gz: b176dbe75544c2d7838780cb44a4d8842816d9e3
3
+ metadata.gz: 72efab14a9ad20f6b0cc6415f3be3b395f196de0
4
+ data.tar.gz: 19baa6f0bd1af87e9829ff57fc3a7babdc24c9cf
5
5
  SHA512:
6
- metadata.gz: 4370d7b507b2fadbbb6e8e3ec5360bcffce799004018faafd05031f2b2ea8f15662c241bff7e912f86599da2f6e54eb55050f13d7567ad146e2f339f2d190a58
7
- data.tar.gz: '08dbf01292200f270b72ddedd8ee6a69506776903dff970c84b577e1b3970f855f515a0c8b95ae4b393d1415b24a44209e7ae71bcabc25aad160af8285ccb614'
6
+ metadata.gz: '09486e1852faef937bf9e0f7c9268227835bae68d09d8f2a1406484ac863f6d8ad00c257e313afdf284572b58bfd9a7c2374021b111e3269a82f827b9654bc90'
7
+ data.tar.gz: e6af502b1223212fbd9a1ad80cf21faec0d398b9d93c16e9b20d2c90d537bebd56d4fc9bc9d6282a0482b26123c36a899565b7b5e7e510e18348b31695d90fe7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.19.3)
4
+ rocket_cms (0.19.4)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -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
- self.qregexp || read_attribute(:regexp)
25
+ has_attribute?(:qregexp) ? qregexp : read_attribute(:regexp)
22
26
  end
23
27
  end
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.19.3"
2
+ VERSION = "0.19.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv