caboose-cms 0.8.32 → 0.8.33

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a183eb54f258dc19f84b6da15e9552052fa617c
4
- data.tar.gz: 48fa620ef6678f5fed6803affc0a6332049a6a56
3
+ metadata.gz: 0f8e6e460ab612819a6fb571f167b4a571a7aa40
4
+ data.tar.gz: edf375ed1672cdbc850b2bf7c223eb87a4568249
5
5
  SHA512:
6
- metadata.gz: acd184a9e5daaa70c31969275955522cd4afc62e8db383f1b4cea04a764026a34e32e288b8b1a746894b964268beecb65332a2deb4472ed6920b425ad6aba17c
7
- data.tar.gz: 743581aa7c2157b0e81729ddd10a58bea4c0a47dfdc4770125311c1b5acd7e7cc682f20029b25295785f550b0aba88d5c4f238ae539e45d47f3f2b8b2a50d699
6
+ metadata.gz: dd495f907bb895bb88bbe890f55ca67e36c2859de8c8681922539698c73ad891cc62f33b0ee947d24d0e1e0985ce4d7f5d2326333243534c928cb23d0078b168
7
+ data.tar.gz: 866b36392e1f00bf6e303f638413d9f4ee9e4242d2a6fa03a0d9c3f21e69d652c5e19026fd0373dceb129f877a4b176ae8a87f6a1b03b3c670f937eafc00e590
@@ -163,7 +163,7 @@ module Caboose
163
163
  bt = BlockType.find(params[:id])
164
164
  options = []
165
165
  if bt.options_function && bt.options_function.length > 0
166
- options = bt.render_options
166
+ options = bt.render_options(@site.id)
167
167
  elsif bt.options
168
168
  options = bt.options.strip.split("\n").collect { |line| { 'value' => line, 'text' => line }}
169
169
  end
@@ -37,7 +37,7 @@ class Caboose::BlockType < ActiveRecord::Base
37
37
  return "#{parent.full_name}_#{name}"
38
38
  end
39
39
 
40
- def render_options(empty_text = nil)
40
+ def render_options(site_id)
41
41
  return eval(self.options_function)
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.32'
2
+ VERSION = '0.8.33'
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.8.32
4
+ version: 0.8.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry