caboose-cms 0.4.22 → 0.4.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTIwZjM2MzAxM2FjZjBlOTEwZDI2YTRiMjk3N2Q0OTkwYzFmYjRmZA==
4
+ ZGEwMWNmOGQ5MmU3ZjE2MWY0ZjgxODBkZDg3Mjk2MzhjMGIzYWQ4Mg==
5
5
  data.tar.gz: !binary |-
6
- YTE4ODBjNzY4Mzk1YTFiOTkwZGFmMTUzMTQ0MjVlMjE2MTQ0NDQ4Yw==
6
+ MTJiYmM1NjQ2ZWJmMGYzODdlZTYxYTM3ODE5YTI4NWM5ZmM5MWM3OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODM5NzJiMjk3NzE5ZDVkMWYyNGRjZjE0YjMyODYzYzc0NDI2ZGFiOWUwOGZi
10
- OTk3ODc1NzJiZDgwNTJmYzhiMWQxNjY3YWZiNTU4MGZhNDVhYTMyYTk2Yjlj
11
- ZGNiYmI1N2M1OGQzYTY5OTY2MzcxMzI2OGUwODZhNjdlMTJlM2I=
9
+ ZGEyYWQ0NDBkOTFjZGU0NGI0N2NjYjM0ZDdlYWQ1OTNmNGM0MGJhZmZkNGM2
10
+ MGMyMjYxZTZlZTY3ZGI2MTNiYjZkOWNlNWQ5YmQ1NGUzYjAyZjVhMzkzMDRi
11
+ Y2M0YjJiMTc1MGVmNmFhN2QxMGJkZjFhMDRiMmMyNzQyNGE1NGY=
12
12
  data.tar.gz: !binary |-
13
- NzVkZjBiYjVhOGY0MWFiZGE3MWNkZjg4NjcwYWQ5ZTA4YjU0ZTE2OGRjNjQw
14
- NDFiMzBkMTlkN2VlNzVmNWY1ZGM0NjJjN2YzNDkwYzI1NjMzZDNhOWE0ZmI2
15
- YTQ1N2YzZDg0NjkxOWJiYTBiZTA0MWVlYzQyZjY0MDhiYmVkN2U=
13
+ OWE2N2EzMzA3ODdlODU2MWJjYzllMmE3NGY2ZWM2ZjlkNjRmZmE2MWZhMDNm
14
+ MmRiMzQ5MmNjNjg4ZmE5ZmM5MWM0NTc5YjZiNTY3YjMwMGYxNDgwOTFjMjU2
15
+ NDFhYmU3MTFiZGQzODU5MWFhMDFhZTcwOTYyNDk1YzIyODc5YWU=
@@ -133,7 +133,13 @@ module Caboose
133
133
  @page = Page.find(params[:page_id])
134
134
  @block = Block.find(params[:id])
135
135
  @block.create_children
136
- @modal = true
136
+ @modal = true
137
+
138
+ @cdn_domain = Rails.application.config.action_controller.asset_host
139
+ if @cdn_domain.starts_with?('//')
140
+ protocol = request.protocol.gsub('//', '')
141
+ @cdn_domain = "#{protocol}#{Rails.application.config.action_controller.asset_host}"
142
+ end
137
143
 
138
144
  #render "caboose/blocks/admin_edit_#{@block.block_type}", :layout => 'caboose/modal'
139
145
  render :layout => 'caboose/modal'
@@ -101,7 +101,7 @@ $(document).ready(function() {
101
101
  <% if @block.block_type.field_type == 'richtext' %>
102
102
  <%= tinymce_assets %>
103
103
  <script type='textjavascript'>
104
- document.domain = "<%= Rails.application.config.action_controller.asset_host %>";
104
+ document.domain = "<%= raw @cdn_domain %>";
105
105
  </script>
106
106
  <%= tinymce :caboose, width: '800px', height:'300px' %>
107
107
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.22'
2
+ VERSION = '0.4.23'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry