This repository has been archived on 2020-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
counter/app/controllers/application_controller.rb

13 lines
281 B
Ruby
Raw Normal View History

2020-05-15 01:02:59 +00:00
# frozen_string_literal: true
class ApplicationController < ActionController::Base
prepend_view_path Rails.root.join('frontend')
def valid_cluster?
return false unless session[:cluster_uuid]
return false unless Cluster.get(session[:cluster_uuid])
true
end
2020-05-15 01:02:59 +00:00
end