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
- ZDdjNGVhNmZlYTcyMjM1MzZkOTEyZjdhODE0OWYwNDIxYTg0NWQ2ZA==
4
+ NWZlMmY4OGUzMzNhMzRkMDNkOWVlODkxODI4ODBhYzU4YmVjNTE2MA==
5
5
  data.tar.gz: !binary |-
6
- ODJmNWEwOTQzODAyODQ4Y2NmZjc3MWMzYjViMmM2NjI3ODBkZDI3NA==
6
+ OGVjNTdjNmZlMzE2ZDM5NzUyOTYyZWYxODM4NmVkNTJiZDJhZGYwNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Mjc4MjE1YTlhN2E4NTkxMWQ2OWE5MzBlNjM5ODZiOTI3MTc2Y2E1MWMzYTM0
10
- NGZiOWI4YTM3MDJiYWUxMWQwZjc3M2Y3ZGU2OTQxOGEyZjg3NTAxMTg0NTNl
11
- OTU3ZTE4ZTUxODY4NDA0NDYzMTQ0NmM0YjRkMzU4YzYwNzg0NmM=
9
+ ZDQxMzMyZWQ3MGFlZjgxZjczNjBjMTc2Y2VmZDI5Yjc3NmIxOTE0YjFjYzk5
10
+ ZTI1N2I0YjU1MjY4ZWE3MDQ3MDdiOTJjOWFhZDdmZWI3ZjU4YzJlZGFiNDll
11
+ Y2NlMjU4MzBjZWIxNTA0MzkzZjUwYjliNDkxYWM3YjY5Y2JmNWE=
12
12
  data.tar.gz: !binary |-
13
- NmE5Nzg4NTQ2NzNlNWNiYTU1NmMyZWFhOGNkMTI2YTkzNWUxODk2Mjk3Njhj
14
- NGEwZDEzNmI1MWU1OTJmYjlhMzE5ZTYwOWYyOWNkMDc4NDk3YTk0NzUzZDlk
15
- ODJjODFkZDIyYWNlY2E3YjU0YWI4YjhkYmIzOWY5ZGY4YWUxYjA=
13
+ ZGEyNGM2YjFiMDc1MTEzOTg3Y2M0MzQ5ODJiNDUyOWIxNDdlMzA4MzdiMTc3
14
+ YTE5NjA5ZDM4YzEyOWMyNDg5ZDQ4ZTFhMjRjYmE3YzRjMWZlM2VhNjAxZTcy
15
+ NzgyYTBhNWRhNGRiZmFhNTAwODEyZjBhZWE5ZjRiZjAwNjBkN2U=
@@ -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
- str = view.render(:partial => "caboose/blocks/render_function", :locals => options2)
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>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.56'
2
+ VERSION = '0.4.57'
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.56
4
+ version: 0.4.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry