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.
|
# frozen_string_literal: true
|
|
|
|
class CounterController < ApplicationController
|
|
before_action :associate!
|
|
|
|
def show; end
|
|
|
|
private
|
|
|
|
def associate!
|
|
session[:cluster_uuid] = params[:uuid] if params[:uuid]
|
|
redirect_to cluster_path unless valid_cluster?
|
|
end
|
|
end
|