caboose-cms 0.8.16 → 0.8.17

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: b694873b2acdf08025a9ff83ce34d097e00c0c87
4
- data.tar.gz: 607782e94412ee709653e88b2ad9662e11592f17
3
+ metadata.gz: 13402536b1e5f9bcb3b178a2950b207f6d9bbdc0
4
+ data.tar.gz: 704e6565a250acc6ae7d2e9d9e66b241adc52dfb
5
5
  SHA512:
6
- metadata.gz: 350418a458a5c6542bb59aa9bdbbdca4d9c0e2613199d9bf3f2b1bf2f77ea4171ee128bd35987744a4aac90d38fd4ac8d7808f17bed01e1a748f81a71a69b9d4
7
- data.tar.gz: 59b14e3cf1cba296916232aa48db9e9406a00050cc4169f15134c8fe2ee18820de6670a55c415c0f7ea9e95189f2114fbfc562415f0e4129242c5866a9167eb1
6
+ metadata.gz: 6e2aed02d6fc2a88bb431f800a65cc72a0309774a6cd3b5d4f168d3794acec29fda1d6ae3910581ba3ee333a6495f743e312f753e8b0b608993f32fee8cd5c49
7
+ data.tar.gz: 4df248e0e08fdcfd627cef7af31b316e1e064dc2daffc804ed9c269cac3de5d5e8f2a4d638ec64d86c3163a1738ae5957eaa576c9463bee2b2638581be63982a
@@ -162,7 +162,7 @@ module Caboose
162
162
  if params[:id]
163
163
  bt = BlockType.find(params[:id])
164
164
  options = []
165
- if bt.options_function
165
+ if bt.options_function && bt.options_function.length > 0
166
166
  options = bt.render_options
167
167
  elsif bt.options
168
168
  options = bt.options.strip.split("\n").collect { |line| { 'value' => line, 'text' => line }}
@@ -30,7 +30,7 @@ module Caboose
30
30
 
31
31
  m = Media.where(:media_category_id => media_category_id, :original_name => original_name, :name => name).first
32
32
  m = Media.create(:media_category_id => media_category_id, :original_name => original_name, :name => name, :processed => false) if m.nil?
33
- m.process
33
+ m.delay.process
34
34
 
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.16'
2
+ VERSION = '0.8.17'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.16
4
+ version: 0.8.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg