Class: CareersController

Inherits:
ApplicationController show all
Defined in:
lib/nexmo_developer/app/controllers/careers_controller.rb

Constant Summary

Constants included from ApplicationHelper

ApplicationHelper::CONFIG

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_admin!, #not_found, #redirect_vonage_domain

Methods included from ApplicationHelper

#active_sidenav_item, #canonical_base, #canonical_base_from_config, #canonical_path, #canonical_url, #dashboard_cookie, #search_enabled?, #set_utm_cookie, #theme

Instance Method Details

#indexObject



2
3
4
5
6
7
8
# File 'lib/nexmo_developer/app/controllers/careers_controller.rb', line 2

def index
  @careers_by_department = Greenhouse
                           .careers
                           .each_with_object(Hash.new { |h, k| h[k] = [] }) do |career, hash|
                             career.department_codes.each { |code| hash[code] << career }
                           end
end