clarion/app/controllers/public/application_controller.rb

11 lines
303 B
Ruby
Raw Normal View History

2015-08-15 03:43:41 +03:00
module Public
class ApplicationController < ::ApplicationController
include ::CurrentConferenceAssigning
before_filter :require_current_conference!
def current_conference
@current_conference ||= Conference.order(created_at: :desc).find_by(host_name: request.host)
end
2015-08-15 03:43:41 +03:00
end
end