Commit 297ad5e95f3d238cd6efc1b2259f0b416514b012
1 parent
b0461340
Exists in
master
and in
29 other branches
Replace checking of type attribute with is_a? call
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/cms/publish.rhtml
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | |
17 | 17 | |
18 | 18 | <!-- Workaroud while the publish feature isn't ready for Events --> |
19 | -<% if @article.type != "Event" %> | |
19 | +<% unless @article.is_a?(Event) %> | |
20 | 20 | <% form_tag do%> |
21 | 21 | <%= hidden_field_tag :back_to, @back_to %> |
22 | 22 | <% @groups.each do |group| %> | ... | ... |