Class: HrLite::BenefitsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/hr_lite/benefits_controller.rb

Overview

What the signed-in person is actually covered for — previously something you had to email somebody to find out.

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
# File 'app/controllers/hr_lite/benefits_controller.rb', line 7

def index
  @enrolments = BenefitEnrolment.live_on(Date.current)
                                .where(user_id: hr_current_user.id)
                                .includes(:benefit)
end