class TrackController

OBRA Alpenrose track page schedule

Public Instance Methods

index() click to toggle source
# File app/controllers/track_controller.rb, line 3
def index
  @upcoming_events = UpcomingEvents.find_all(:weeks => 52, :discipline => "Track")
end
schedule() click to toggle source
# File app/controllers/track_controller.rb, line 7
def schedule
  @events = SingleDayEvent.find_all_by_year(Time.zone.today.year, Discipline[:track], nil) + MultiDayEvent.find_all_by_year(Time.zone.today.year, Discipline[:track])
end