Class: Decidim::Verifications::ManagedUserErrorEvent

Inherits:
Events::SimpleEvent show all
Defined in:
decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb

Instance Method Summary collapse

Methods inherited from Events::SimpleEvent

#email_intro, #email_outro, #email_subject, #event_has_roles?, i18n_attributes, #i18n_options, #notification_title, #participatory_space_url, #resource_text

Methods included from SanitizeHelper

#decidim_html_escape, #decidim_sanitize, #decidim_sanitize_newsletter, #decidim_url_escape, included

Methods included from ComponentPathHelper

#can_be_managed?, #main_component_path, #main_component_url, #manage_component_path

Methods inherited from Events::BaseEvent

#initialize, #resource_locator, #resource_text, #safe_resource_text, type

Methods included from TranslatableAttributes

#default_locale?

Constructor Details

This class inherits a constructor from Decidim::Events::BaseEvent

Instance Method Details

#default_i18n_optionsObject


24
25
26
# File 'decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb', line 24

def default_i18n_options
  super.merge({ managed_user_path: managed_user.profile_path, managed_user_name: managed_user.name })
end

#i18n_scopeObject


8
9
10
# File 'decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb', line 8

def i18n_scope
  "decidim.events.verifications.verify_with_managed_user"
end

#resource_pathObject


12
13
14
# File 'decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb', line 12

def resource_path
  profile_path
end

#resource_titleObject


20
21
22
# File 'decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb', line 20

def resource_title
  updated_user.name
end

#resource_urlObject


16
17
18
# File 'decidim-verifications/app/events/decidim/verifications/managed_user_error_event.rb', line 16

def resource_url
  profile_url
end