Module: Spotlight::RolesHelper

Defined in:
app/helpers/spotlight/roles_helper.rb

Overview

Exhibit roles helpers

Instance Method Summary collapse

Instance Method Details

#roles_for_selectObject

Format the available roles for a select_tag



7
8
9
10
11
# File 'app/helpers/spotlight/roles_helper.rb', line 7

def roles_for_select
  Spotlight::Role::ROLES.each_with_object({}) do |key, object|
    object[t("spotlight.role.#{key}")] = key
  end
end