Fix: "._type" to ".class"
This commit is contained in:
1 parent
bb154f5be6
commit
7440727acd
10 files changed
+18
-18
No files matched your search
@@ -2,4 +2,4 @@
|
||||
<%= render 'admin/items/site_map_left_bar' %>
|
||||
<% end -%>
|
||||
|
||||
<%= render "admin/#{@item._type.downcase.pluralize}/show" %>
|
||||
<%= render "admin/#{@item.class.downcase.pluralize}/show" %>
|
||||
@@ -1,5 +1,5 @@
|
||||
$('#back_main').empty();
|
||||
<% case @item._type %>
|
||||
<% case @item.class %>
|
||||
<% when 'Page' %>
|
||||
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
<% when 'Link' %>
|
||||
|
||||
Reference in new issue
Block a user