Class: HrLite::SalarySlipsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- HrLite::SalarySlipsController
- Defined in:
- app/controllers/hr_lite/salary_slips_controller.rb
Overview
Employee surface: strictly own PUBLISHED slips — a foreign or unpublished id 404s through the scoped relation, never 403s.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/hr_lite/salary_slips_controller.rb', line 5 def index @slips = paginate(own_published.recent_first) end |
#show ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/controllers/hr_lite/salary_slips_controller.rb', line 9 def show @slip = own_published.find(params[:id]) respond_to do |format| format.html format.pdf { send_slip_pdf(@slip) } end end |