show first day if today is not within the conference date range

This commit is contained in:
differentreality 2013-07-29 08:48:04 +03:00
parent adb04ab82e
commit 4f582bc7f9

View file

@ -10,6 +10,8 @@ class ScheduleController < ApplicationController
if @dates === Date.current
@today = Date.current.strftime("%Y-%m-%d")
else
@today = @conference.start_date.strftime("%Y-%m-%d")
end
end