Sha256: 4fb6e6165e70c11144b22986b41a7864bc7afc27ef99797195df4b7fc39966c6

Contents?: true

Size: 326 Bytes

Versions: 30

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Exhibit roles helpers
  module RolesHelper
    ##
    # Format the available roles for a select_tag
    def roles_for_select
      Spotlight::Role::ROLES.each_with_object({}) do |key, object|
        object[t("spotlight.role.#{key}")] = key
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc4 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.rc3 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.rc2 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.rc1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.10 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.9 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.8 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.7 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.6 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.5 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.4 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.3 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.2 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-3.0.0.alpha.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.13.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.12.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.12.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.11.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.10.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.9.0 app/helpers/spotlight/roles_helper.rb