Module: Decidim::UserProfile

Extended by:
ActiveSupport::Concern
Includes:
FormFactory
Included in:
AccountController, AuthorizationsController, NotificationsSettingsController, OwnUserGroupsController
Defined in:
app/controllers/concerns/decidim/user_profile.rb

Overview

The UserProfile concern must be included in all the controllers that are shown in the user’s profile settings. It adds the proper layout, as well as helper methods that help render the side menu, amongst others.

Instance Method Summary collapse

Instance Method Details

#available_authorization_handlersObject

Public: Available authorization handlers in order to conditionally show the menu element.



29
30
31
# File 'app/controllers/concerns/decidim/user_profile.rb', line 29

def available_authorization_handlers
  current_organization.available_authorizations.map(&:constantize)
end