Commit 4e9672e75fcab459663df0288267f7e1537bdfbc

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent c4945dbc

fix typo method name

app/helpers/boxes_helper.rb
@@ -219,7 +219,7 @@ module BoxesHelper @@ -219,7 +219,7 @@ module BoxesHelper
219 buttons << thickbox_inline_popup_icon(:help, _('Help on this block'), {}, "help-on-box-#{block.id}") << content_tag('div', content_tag('h2', _('Help')) + content_tag('div', block.help, :style => 'margin-bottom: 1em;') + thickbox_close_button(_('Close')), :style => 'display: none;', :id => "help-on-box-#{block.id}") 219 buttons << thickbox_inline_popup_icon(:help, _('Help on this block'), {}, "help-on-box-#{block.id}") << content_tag('div', content_tag('h2', _('Help')) + content_tag('div', block.help, :style => 'margin-bottom: 1em;') + thickbox_close_button(_('Close')), :style => 'display: none;', :id => "help-on-box-#{block.id}")
220 end 220 end
221 221
222 - if block.respond_to?(:embedable) 222 + if block.embedable?
223 url = url_for :controller => 'embed', :action => 'index', :id => block.id, :only_path => false; 223 url = url_for :controller => 'embed', :action => 'index', :id => block.id, :only_path => false;
224 224
225 html = content_tag('div', 225 html = content_tag('div',
app/views/layouts/embed.rhtml
@@ -13,7 +13,6 @@ @@ -13,7 +13,6 @@
13 13
14 </head> 14 </head>
15 <body class="<%= h body_classes %>"> 15 <body class="<%= h body_classes %>">
16 -  
17 <%= 16 <%=
18 @plugins.dispatch(:body_beginning).collect do |content| 17 @plugins.dispatch(:body_beginning).collect do |content|
19 content.respond_to?(:call) ? content.call : content 18 content.respond_to?(:call) ? content.call : content