constructor-pages 0.8.11 → 0.8.12

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: 8edd162ba83b5a4d3fe939eaf7aae3fa34d7e8f9
4
- data.tar.gz: 70302f7c1a5bfe6a44f808d4ec055af3fb6a0b1f
3
+ metadata.gz: c09866c9e4bcf1acc6b6507998a7cb406f374eda
4
+ data.tar.gz: ea5777196397b8e286e6f692b9c7a9cdd25a13b0
5
5
  SHA512:
6
- metadata.gz: 7b0415eed1db2171ab993e17943e931dc77efe4827c2ce48a8aea38598163572e3c7acf18edfa1c0c22e49a60cfa06ca9f2f610c1f0f9ab1bcd4086854155f07
7
- data.tar.gz: 363bcce2be73f8ab8ece9e950f94fd1c802657b14269c2ddd9994409d674ab3f5c30e6d3865ef4f0efb667be97de3498051df7b424f61817e5855237ef524b6a
6
+ metadata.gz: 8312e4a5faf16128dad527508472dea2b4bb1938cf69ae1a0a177e3b3fabd844a14a3425edae259209467ae50f5e18ec3816bbdfcee4225f455b1274554e1697
7
+ data.tar.gz: 38778dbfc8f196fd125d7e296005ff9b8d0471aac3ef56b4b839007534a37688a726e9e702cf26ce3eb5126b0700829cf0c49af69e02945960307dd86e4b5880
@@ -6,6 +6,8 @@ module ConstructorPages
6
6
  class HtmlType < ActiveRecord::Base
7
7
  belongs_to :field
8
8
  belongs_to :page, touch: true
9
+
10
+ before_save -> { self.value ||= '' }
9
11
  end
10
12
  end
11
13
  end
@@ -6,6 +6,8 @@ module ConstructorPages
6
6
  class TextType < ActiveRecord::Base
7
7
  belongs_to :field
8
8
  belongs_to :page, touch: true
9
+
10
+ before_save -> { self.value ||= '' }
9
11
  end
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: constructor-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.11
4
+ version: 0.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zotov
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.11
19
+ version: 0.8.12
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.11
26
+ version: 0.8.12
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dragonfly
29
29
  requirement: !ruby/object:Gem::Requirement