Module: Decidim::UserProfile
- Extended by:
- ActiveSupport::Concern
- Includes:
- FormFactory, UserGroups
- Included in:
- AccountController, DownloadYourDataController, NotificationsSettingsController, OwnUserGroupsController, UserInterestsController
- 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
-
#available_verification_workflows ⇒ Object
Public: Available authorization handlers in order to conditionally show the menu element.
Methods included from UserGroups
Instance Method Details
#available_verification_workflows ⇒ Object
Public: Available authorization handlers in order to conditionally show the menu element.
29 30 31 32 33 |
# File 'app/controllers/concerns/decidim/user_profile.rb', line 29 def available_verification_workflows Verifications::Adapter.from_collection( current_organization. & Decidim..map(&:name) ) end |