Module: General
- Defined in:
- app/helpers/users/general.rb
Overview
TODO3 ‘unite this with SaaS ’
Instance Method Summary collapse
Instance Method Details
#main_menu ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/users/general.rb', line 3 def @@menu ||= [ # [:home, all_pages_path], # [:accounts, all_accounts_path, :global_administration], [:users, all_profiles_path], ] unless @active_menu.blank? (@@menu.collect do |key, link, | unless and !can?() [t(key), link, key == @active_menu] else nil end end).compact else [] end end |