From d70e39c789af6604472fc1cb3203e095b96a716e Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Mon, 27 Jun 2011 10:53:31 +1200 Subject: Only use custom_teaser if the migration has run --- app/views/admin/blog/posts/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/admin/blog/posts') diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index 20a8fe1..fcec218 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -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| %>
<%= render :partial => tab.partial, :locals => {:f => f} %> -- cgit v1.2.3