caboose-cms 0.3.75 → 0.3.76
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
|
-
|
4
|
+
NTYzNGQ4OWJkYWNiOTQ3MzY1ODA4YzhiMWZiN2ZiY2NmMzNhZGE0ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmJmNzkyZDBjMWVjZWRjZGFmODcwNDY4ZTI3NmJhZjVkY2NiMGM0ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWU4YWE4MjQwOTMxZDUwYzFlMmRhYWYzYjAzMWVjMDgxYjAwODQ1ZDk0N2Fk
|
10
|
+
ZDVlNDA3YTllYjI2YmJjNzc0NGUyYTdkMTY1ZmEwYWI0ZjkxNTJhZjBhNGZl
|
11
|
+
NzZhNmJiMzY1MDg2N2FiNzM2N2JlMGNhYzcyMmE3NDc4NTQxOGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzExOTc0NGQxMDk3MTcwMGE0YjE0NGU5YmFkYjFkZmVmMWM0M2Y5ZjUwNWU5
|
14
|
+
ZmUwMzVlM2Y3MTkwMWU1NDZmNzIzNGVkOGQ0ZjgzYzcyNWI4ODVlMjA0M2M5
|
15
|
+
MzY2ZDczZmZmMTM2MDYwMjFlYWQ2NDhjMTUxNTRhNTYwNDVmMmU=
|
@@ -41,7 +41,7 @@ module Caboose
|
|
41
41
|
html = nil
|
42
42
|
|
43
43
|
if bt.use_render_function && bt.render_function
|
44
|
-
html = b.render_from_function(params[:empty_text])
|
44
|
+
html = b.render_from_function(params[:empty_text], true)
|
45
45
|
else
|
46
46
|
html = render_to_string({
|
47
47
|
:partial => "caboose/page_blocks/#{b.page_block_type.name}",
|
@@ -40,8 +40,8 @@ class Caboose::PageBlock < ActiveRecord::Base
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
def render_from_function(empty_text = nil)
|
44
|
-
locals = OpenStruct.new(:block => self, :empty_text => empty_text)
|
43
|
+
def render_from_function(empty_text = nil, editing = false)
|
44
|
+
locals = OpenStruct.new(:block => self, :empty_text => empty_text, :editing => editing)
|
45
45
|
erb = ERB.new(page_block_type.render_function)
|
46
46
|
return erb.result(locals.instance_eval { binding })
|
47
47
|
end
|
data/lib/caboose/version.rb
CHANGED