Sha256: 48e14bb9bff0ec23359d007efa79f88e213ad9fddf7984670b3017f9c2cab171

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

class TimesheetsController < ApplicationController
  def index
    @employee = Employee.find(params[:employee_id])
    @employment = @employee.employments.current

    days = (Date.today.beginning_of_month..Date.today.end_of_month).to_a
    @work_days = days.map{|day| WorkDay.new(day, @employment)}
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bookyt_projects-0.11.2 app/controllers/timesheets_controller.rb
bookyt_projects-0.11.1 app/controllers/timesheets_controller.rb
bookyt_projects-0.11.0 app/controllers/timesheets_controller.rb
bookyt_projects-0.10.0 app/controllers/timesheets_controller.rb