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