15 lines
274 B
Ruby
15 lines
274 B
Ruby
# 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
|