aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-06-27 10:53:31 +1200
committerPhilip Arndt <parndt@gmail.com>2011-06-27 10:53:31 +1200
commitd70e39c789af6604472fc1cb3203e095b96a716e (patch)
tree11f79b318211cad42db72843e7d897a6c9b70738 /app/views
parente7d107ca4f33b15e47373236d1167d1f0201b14f (diff)
downloadrefinerycms-blog-d70e39c789af6604472fc1cb3203e095b96a716e.tar.gz
refinerycms-blog-d70e39c789af6604472fc1cb3203e095b96a716e.tar.bz2
refinerycms-blog-d70e39c789af6604472fc1cb3203e095b96a716e.zip
Only use custom_teaser if the migration has run
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
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| %>
<div class='page_part' id='<%= "custom_tab_#{tab_index}" %>'>
<%= render :partial => tab.partial, :locals => {:f => f} %>