smithycms 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/smithy/page_content.rb +1 -1
- data/lib/smithy/content_blocks/model.rb +1 -1
- data/lib/smithy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ddcfec9326cecb947ca8f6b438d922c50b9aade
|
4
|
+
data.tar.gz: a8baae438f9d3ecd2a51408d849a7483c9a9af62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf299a6e9b5913807d587854ddb2140f311c1e12b4571695a6b42a5621b3dfd5135eb02c5f7f505726c335d7f15ee848ac0a7c7fedbb6f9268341410550a031e
|
7
|
+
data.tar.gz: b1c0bfccc3e54cc2917681625723bd9633f48c0e47e98ea6baa7f317a95c8bd03f164fe6260d9b4c7c5898f23119130759c45224a8ff7abd0a9ba954e7dd7e95
|
@@ -5,7 +5,7 @@ module Smithy
|
|
5
5
|
validates_presence_of :label, :container, :page
|
6
6
|
|
7
7
|
belongs_to :page, :touch => true
|
8
|
-
belongs_to :content_block, :polymorphic => true
|
8
|
+
belongs_to :content_block, :polymorphic => true
|
9
9
|
belongs_to :content_block_template
|
10
10
|
|
11
11
|
before_update :set_publishable
|
@@ -3,7 +3,7 @@ module Smithy
|
|
3
3
|
module Model
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
included do
|
6
|
-
has_many :page_contents, :as => :content_block, class_name: '::Smithy::PageContent'
|
6
|
+
has_many :page_contents, :as => :content_block, class_name: '::Smithy::PageContent', dependent: :destroy
|
7
7
|
has_many :pages, through: :page_contents, class_name: '::Smithy::Page'
|
8
8
|
Smithy::ContentBlocks::Registry.register self
|
9
9
|
amoeba do
|
data/lib/smithy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smithycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Glen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|