Skip to content

Commit

Permalink
Closes #11. Fixed whiny nil on active category
Browse files Browse the repository at this point in the history
sebastiandeutsch committed Dec 5, 2009
1 parent b20e4db commit 9fd4a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/vrame/categories/_category.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div
data-category-id="<%= category.to_param %>"
class="category clearfix level-<%= level.to_s %> <%= 'active-category' if @active_category.id == category.id %>">
class="category clearfix level-<%= level.to_s %> <%= 'active-category' if @active_category.try(:id) == category.id %>">

<div class="column order">
<%= link_to '<img src="/vrame/images/admin/arrow_up.png" alt="Nach oben verschieben" title="Nach oben verschieben" />', [:order_up, :vrame, category] %>

0 comments on commit 9fd4a64

Please sign in to comment.