Sha256: 2a9b3e00035a99afb6ae6afa35f6fd3403803b1c56c07adf7c0e56ffc3bfa03b

Contents?: true

Size: 369 Bytes

Versions: 94

Compression:

Stored size: 369 Bytes

Contents

class CareersController < ApplicationController
  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
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.15 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.14 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.13 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.12 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.11 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.10 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.9 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.8 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.7 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.6 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.5 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.4 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.3 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.2 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.1 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.5.0 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.4.9 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.4.8 lib/nexmo_developer/app/controllers/careers_controller.rb
station-0.4.7 lib/nexmo_developer/app/controllers/careers_controller.rb