Class: Decidim::Verifications::ManagedUserErrorEvent
- Inherits:
-
Events::SimpleEvent
- Object
- Events::SimpleEvent
- Decidim::Verifications::ManagedUserErrorEvent
- Defined in:
- app/events/decidim/verifications/managed_user_error_event.rb
Instance Method Summary collapse
- #default_i18n_options ⇒ Object
- #i18n_scope ⇒ Object
- #resource_path ⇒ Object
- #resource_title ⇒ Object
- #resource_url ⇒ Object
Instance Method Details
#default_i18n_options ⇒ Object
27 28 29 30 |
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 27 def super.merge({ conflicts_path:, conflicts_url:, managed_user_path: managed_user.profile_path, managed_user_url: managed_user.profile_url, managed_user_name: managed_user.name }) end |
#i18n_scope ⇒ Object
11 12 13 |
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 11 def i18n_scope "decidim.events.verifications.verify_with_managed_user" end |
#resource_path ⇒ Object
15 16 17 |
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 15 def resource_path profile_path end |
#resource_title ⇒ Object
23 24 25 |
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 23 def resource_title updated_user.name end |
#resource_url ⇒ Object
19 20 21 |
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 19 def resource_url profile_url end |