Commit 3022121d2df0d29827a218dd7a4ec1877564e870
1 parent
f75d6d82
Exists in
master
and in
8 other branches
ActionItem392: always show categories in menu while developing
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1868 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
app/models/category.rb
... | ... | @@ -52,6 +52,10 @@ class Category < ActiveRecord::Base |
52 | 52 | end |
53 | 53 | |
54 | 54 | def display_in_menu? |
55 | + if ENV['RAILS_ENV'] == 'development' | |
56 | + return true | |
57 | + end | |
58 | + | |
55 | 59 | # FIXME don't hardcode like this. Should be a setting of the environment, maybe |
56 | 60 | total_items >= 10 |
57 | 61 | end | ... | ... |