mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-25 01:07:28 -04:00
The actions #schedule and #events were moved from conference controller to the new controller
22 lines
562 B
Ruby
22 lines
562 B
Ruby
class ConferenceController < ApplicationController
|
|
protect_from_forgery with: :null_session
|
|
before_filter :respond_to_options
|
|
load_and_authorize_resource find_by: :short_title
|
|
load_resource :program, through: :conference, singleton: true, except: :index
|
|
|
|
def index
|
|
@current = Conference.where('end_date >= ?', Date.current).reorder(start_date: :asc)
|
|
@antiquated = @conferences - @current
|
|
end
|
|
|
|
def show; end
|
|
|
|
private
|
|
|
|
def respond_to_options
|
|
respond_to do |format|
|
|
format.html { head :ok }
|
|
end if request.options?
|
|
end
|
|
end
|