From 297ad5e95f3d238cd6efc1b2259f0b416514b012 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 28 Apr 2010 13:33:39 -0300 Subject: [PATCH] Replace checking of type attribute with is_a? call --- app/views/cms/publish.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cms/publish.rhtml b/app/views/cms/publish.rhtml index d163a27..ef429f3 100644 --- a/app/views/cms/publish.rhtml +++ b/app/views/cms/publish.rhtml @@ -16,7 +16,7 @@ -<% if @article.type != "Event" %> +<% unless @article.is_a?(Event) %> <% form_tag do%> <%= hidden_field_tag :back_to, @back_to %> <% @groups.each do |group| %> -- libgit2 0.21.2