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

Version Path
bookyt_projects-1.0.1 app/controllers/timesheets_controller.rb
bookyt_projects-1.0.0 app/controllers/timesheets_controller.rb
bookyt_projects-0.21.0 app/controllers/timesheets_controller.rb
bookyt_projects-0.20.0 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.23 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.22 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.21 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.20 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.19 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.18 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.17 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.15 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.14 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.13 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.12 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.11 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.10 app/controllers/timesheets_controller.rb
bookyt_projects-0.19.9 app/controllers/timesheets_controller.rb