Sha256: c2f8671d14f601dfc3417738bf6159f0b7ffb3dd66727a748a4c804b06d9babb

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

# TODO3 'unite this with SaaS '
module General
  def main_menu
    @@menu ||= [
      # [:home, all_pages_path],
      # [:accounts, all_accounts_path, :global_administration],
      [:users, all_profiles_path],
    ]

    unless @active_menu.blank?
      (@@menu.collect do |key, link, permission|
        unless permission and !can?(permission)
          [t(key), link, key == @active_menu]
        else
          nil
        end
      end).compact
    else
      []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_users-0.0.2 app/helpers/users/general.rb