Class: Decidim::ParticipatoryProcessRoleAssignedEvent

Inherits:
Events::SimpleEvent
  • Object
show all
Includes:
Events::AuthorEvent
Defined in:
app/events/decidim/participatory_process_role_assigned_event.rb

Instance Method Summary collapse

Instance Method Details

#i18n_optionsObject



11
12
13
14
15
16
17
18
19
20
21
# File 'app/events/decidim/participatory_process_role_assigned_event.rb', line 11

def i18n_options
  {
    resource_path:,
    resource_title:,
    resource_url:,
    scope: event_name,
    participatory_space_title:,
    participatory_space_url:,
    role: i18n_role
  }
end

#i18n_roleObject



7
8
9
# File 'app/events/decidim/participatory_process_role_assigned_event.rb', line 7

def i18n_role
  I18n.t(extra["role"], scope: "decidim.admin.models.participatory_process_user_role.roles", default: extra["role"])
end