Making Rubocopy happy.
This commit is contained in:
parent
6e7f01fb1b
commit
ddb35e06a2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ClusterHelper
|
||||
end
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module CounterHelper
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class ClusterControllerTest < ActionDispatch::IntegrationTest
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
|
||||
class CounterControllerTest < ActionDispatch::IntegrationTest
|
||||
|
|
Reference in New Issue
Block a user