From 8280da87e10c2bf53cd332759770e158cf262a59 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 27 Dec 2007 07:21:11 +0000 Subject: [PATCH] change to check for both fields rather than an auto-guessed model name git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@70 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/views/pages/_page.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/_page.rhtml b/app/views/pages/_page.rhtml index b038733..0452a8f 100644 --- a/app/views/pages/_page.rhtml +++ b/app/views/pages/_page.rhtml @@ -15,7 +15,7 @@
  • Version: <%= @page.version -%>
  • <% @page.owner.page_attributes.each do |x| -%>
  • <%= x -%>
  • - <% end if @page.owner and @page.owner.respond_to?("page_attributes") %> + <% end if !@page.owner_id.nil? and !@page.owner_type.nil? and @page.owner.respond_to?("page_attributes") %> <% if @page.created_by != @page.updated_by -%>
  • Last updated by: <%= @page.updated_by.title rescue 'That other other guy' -%>
  • <% end %> <% end -%>