Class: NextdaysController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/nextdays_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
7
8
9
10
# File 'app/controllers/nextdays_controller.rb', line 3

def show
  render :json => {
    :despatch_day => Time.zone.now.despatch_day,
    :delivery_day => Time.zone.now.delivery_day,
    :cut_off_time => Time.zone.now.despatch_day.cut_off_time,
    :current_time => Time.zone.now
  }
end