Sha256: 85e80ccc2d475dc8f2aade8499572697ae382ea4cf2d64e97666c348cac583cd

Contents?: true

Size: 295 Bytes

Versions: 84

Compression:

Stored size: 295 Bytes

Contents

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

84 entries across 84 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.4.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.3.3 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.3.2 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.3.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.3.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.2.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.2.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.1.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.2 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc6 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc5 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc4 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc3 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc2 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-2.0.0.rc1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-1.5.1 app/helpers/spotlight/roles_helper.rb
blacklight-spotlight-1.4.1 app/helpers/spotlight/roles_helper.rb