2015-08-15 03:43:41 +03:00
|
|
|
module Public
|
|
|
|
class ApplicationController < ::ApplicationController
|
|
|
|
include ::CurrentConferenceAssigning
|
2019-04-28 02:15:39 +03:00
|
|
|
before_action :require_current_conference!
|
2015-08-15 06:15:53 +03:00
|
|
|
|
|
|
|
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
|