Making Rubocopy happy.

This commit is contained in:
James Patrick 2020-05-22 23:54:14 -04:00
parent 6e7f01fb1b
commit ddb35e06a2
7 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,12 @@
# frozen_string_literal: true
class CounterController < ApplicationController
before_action :associate!
def show; end
private
def associate!
redirect_to cluster_path unless session[:cluster]
end

View File

@ -2,7 +2,7 @@
module ApplicationHelper
def component(component_name, locals = {}, &block)
name = component_name.split("_").first
name = component_name.split('_').first
render("components/#{name}/#{component_name}", locals, &block)
end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
module ClusterHelper
end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
module CounterHelper
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Generator for building scaffolding frontend components.
# e.g. rails g component NAME
class ComponentGenerator < Rails::Generators::Base

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class ClusterControllerTest < ActionDispatch::IntegrationTest

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class CounterControllerTest < ActionDispatch::IntegrationTest