Sha256: 1c59611aa7b282ab1133f5f86030961171887f490ad1ffb43246884b8b1475c5
Contents?: true
Size: 321 Bytes
Versions: 18
Compression:
Stored size: 321 Bytes
Contents
class TimesheetsController < ApplicationController def index @employee = Employee.find(params[:employee_id]) WorkDay.create_or_update_upto(@employee, Date.today.end_of_month) range = Date.today.beginning_of_month..Date.today.end_of_month @work_days = @employee.work_days.where(:date => range) end end
Version data entries
18 entries across 18 versions & 1 rubygems