Only use custom_teaser if the migration has run

This commit is contained in:
Philip Arndt 2011-06-27 10:53:31 +12:00
parent e7d107ca4f
commit d70e39c789

View file

@ -38,7 +38,7 @@
:locals => {
:f => f,
:part_index => (part_index += 1),
} -%>
} if f.object.respond_to?(:custom_teaser) -%>
<% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %>
<div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'>
<%= render :partial => tab.partial, :locals => {:f => f} %>