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/counter_controller.rb

14 lines
217 B
Ruby
Raw Normal View History

2020-05-23 03:54:14 +00:00
# frozen_string_literal: true
class CounterController < ApplicationController
before_action :associate!
def show; end
private
2020-05-23 03:54:14 +00:00
def associate!
redirect_to cluster_path unless session[:cluster]
end
end