caboose-cms 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/controllers/caboose/pages_controller.rb +1 -1
- data/app/models/caboose/schema.rb +6 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDRhNTg4YTc1YjEyMDViN2JlNDFlOWUxYjZmYzliN2I1ODY2ZGY3MQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Y2E0MGRkNTcwYTQxMDZhMzY1Nzk4ZjUwOTUzOTQ2ZDAwNmQ1Nzc5YQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NWM0MWMwN2ZjYWUwYjZkMjhhODY1NGFkZDQ0Mzc0NDdjZTgxNzhmMzFmMWQw
|
|
10
|
+
MGMxYzQ5MWVhODMxYjdhNGI5MmE5MjljMTc3Zjg1MjA3YzJiZTI1ZWVkYTll
|
|
11
|
+
ODEyNjZjOTVkZDkwYmIzNjJhZTM0MzBiNWUxMDUxNmE1NTQzZmI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWMxNTY1ZDFlOWUxYjM4OTQ4ODQ4N2U5ZWYyN2ZhZDlkNDdiYzg3ZmQzNTBi
|
|
14
|
+
OWIzOTg3ODIzNWEyMzRiNzg5NGFkOWZjMDJmOWQ1ZmE0Njc0MzcxZDcxNDc1
|
|
15
|
+
MDQ0OGJkNTQ1MmM5ZTUwZmMyZTFiZWM2N2Y2ZDEyOTZhMTE5NjM=
|
|
@@ -132,7 +132,7 @@ module Caboose
|
|
|
132
132
|
return unless user_is_allowed('pages', 'edit')
|
|
133
133
|
@page = Page.find(params[:id])
|
|
134
134
|
if @page.block.nil?
|
|
135
|
-
redirect_to
|
|
135
|
+
redirect_to "/admin/page/#{@page.id}/layout"
|
|
136
136
|
return
|
|
137
137
|
end
|
|
138
138
|
@editing = true
|
|
@@ -346,8 +346,12 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
|
346
346
|
Caboose::BlockType.create(:name => 'text', :description => 'Text', :field_type => 'text', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
|
347
347
|
end
|
|
348
348
|
if !Caboose::BlockType.where(:name => 'richtext').exists?
|
|
349
|
-
Caboose::BlockType.create(:name => 'richtext', :description => 'Text', :field_type => 'richtext', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
|
350
|
-
|
|
349
|
+
Caboose::BlockType.create(:name => 'richtext', :description => 'Text', :field_type => 'richtext', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
|
350
|
+
else
|
|
351
|
+
bt = Caboose::BlockType.where(:name => 'richtext').first
|
|
352
|
+
bt.field_type = 'richtext'
|
|
353
|
+
bt.save
|
|
354
|
+
end
|
|
351
355
|
|
|
352
356
|
end
|
|
353
357
|
end
|
data/lib/caboose/version.rb
CHANGED