14 lines
217 B
Ruby
14 lines
217 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CounterController < ApplicationController
|
|
before_action :associate!
|
|
|
|
def show; end
|
|
|
|
private
|
|
|
|
def associate!
|
|
redirect_to cluster_path unless session[:cluster]
|
|
end
|
|
end
|