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



9
10
11
12
13
# File 'app/helpers/spotlight/roles_helper.rb', line 9

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