Class: Decidim::Verifications::ManagedUserErrorEvent

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

Instance Method Summary collapse

Instance Method Details

#default_i18n_optionsObject



27
28
29
30
# File 'app/events/decidim/verifications/managed_user_error_event.rb', line 27

def default_i18n_options
  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_scopeObject



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_pathObject



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

def resource_path
  profile_path
end

#resource_titleObject



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

def resource_title
  updated_user.name
end

#resource_urlObject



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

def resource_url
  profile_url
end