caboose-cms 0.4.56 → 0.4.57
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
|
+
NWZlMmY4OGUzMzNhMzRkMDNkOWVlODkxODI4ODBhYzU4YmVjNTE2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGVjNTdjNmZlMzE2ZDM5NzUyOTYyZWYxODM4NmVkNTJiZDJhZGYwNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQxMzMyZWQ3MGFlZjgxZjczNjBjMTc2Y2VmZDI5Yjc3NmIxOTE0YjFjYzk5
|
10
|
+
ZTI1N2I0YjU1MjY4ZWE3MDQ3MDdiOTJjOWFhZDdmZWI3ZjU4YzJlZGFiNDll
|
11
|
+
Y2NlMjU4MzBjZWIxNTA0MzkzZjUwYjliNDkxYWM3YjY5Y2JmNWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGEyNGM2YjFiMDc1MTEzOTg3Y2M0MzQ5ODJiNDUyOWIxNDdlMzA4MzdiMTc3
|
14
|
+
YTE5NjA5ZDM4YzEyOWMyNDg5ZDQ4ZTFhMjRjYmE3YzRjMWZlM2VhNjAxZTcy
|
15
|
+
NzgyYTBhNWRhNGRiZmFhNTAwODEyZjBhZWE5ZjRiZjAwNjBkN2U=
|
data/app/models/caboose/block.rb
CHANGED
@@ -150,7 +150,13 @@ class Caboose::Block < ActiveRecord::Base
|
|
150
150
|
|
151
151
|
#eval("def render_my_function\n#{block.block_type.render_function}\nend\n\n, :locals => options2)
|
152
152
|
#Caboose.log(block.id)
|
153
|
-
|
153
|
+
|
154
|
+
begin
|
155
|
+
str = view.render(:partial => "caboose/blocks/render_function", :locals => options2)
|
156
|
+
rescue Exception => ex
|
157
|
+
msg = block ? (block.block_type ? "Error with #{block.block_type.name} block (block_type_id #{block.block_type.id}, block_id #{block.id})\n" : "Error with block (block_id #{block.id})\n") : ''
|
158
|
+
Caboose.log("#{msg}#{ex.message}\n#{ex.backtrace.join("\n")}")
|
159
|
+
end
|
154
160
|
else
|
155
161
|
#view = ActionView::Base.new(ActionController::Base.view_paths, options2, )
|
156
162
|
#view = ActionView::Base.new(options2[:view].view_renderer, {}, options2[:view].controller)
|
@@ -1,13 +1,7 @@
|
|
1
1
|
<div class="content_wrapper" id='block_<%= block.id %>'>
|
2
2
|
<div class="content_body">
|
3
3
|
<% if editing %><div class='sortable'><% end %>
|
4
|
-
<% block.children.each do |b| %>
|
5
|
-
<%
|
6
|
-
msg = b ? (b.block_type ? "#{b.block_type.name} block (block_type_id #{b.block_type.id}, block_id #{b.id})\n" : "Block (block_id #{b.id})\n") : ''
|
7
|
-
Caboose.log(msg)
|
8
|
-
%>
|
9
|
-
<%= raw block.render(b, local_assigns) %>
|
10
|
-
<% end %>
|
4
|
+
<% block.children.each do |b| %><%= raw block.render(b, local_assigns) %><% end %>
|
11
5
|
<% if editing %></div><% end %>
|
12
6
|
</div>
|
13
7
|
</div>
|
data/lib/caboose/version.rb
CHANGED