Class: Decidim::AccessRequests::AccessRequestConfirmedEvent
- Inherits:
-
Events::SimpleEvent
- Object
- Events::SimpleEvent
- Decidim::AccessRequests::AccessRequestConfirmedEvent
- Defined in:
- app/events/decidim/access_requests/access_request_confirmed_event.rb
Instance Method Summary collapse
Instance Method Details
#resource_path ⇒ Object
17 18 19 |
# File 'app/events/decidim/access_requests/access_request_confirmed_event.rb', line 17 def resource_path url_helpers.profile_path(user_nickname) end |
#resource_url ⇒ Object
10 11 12 13 14 15 |
# File 'app/events/decidim/access_requests/access_request_confirmed_event.rb', line 10 def resource_url url_helpers.profile_url( user_nickname, host: user.organization.host ) end |
#user_nickname ⇒ Object
26 27 28 |
# File 'app/events/decidim/access_requests/access_request_confirmed_event.rb', line 26 def user_nickname extra.dig("user_nickname") end |
#verification_name ⇒ Object
21 22 23 24 |
# File 'app/events/decidim/access_requests/access_request_confirmed_event.rb', line 21 def verification_name handler_name = extra.dig("handler_name") I18n.t("#{handler_name}.name", scope: "decidim.authorization_handlers") end |