Making Rubocopy happy.
This commit is contained in:
		
							parent
							
								
									6e7f01fb1b
								
							
						
					
					
						commit
						ddb35e06a2
					
				| 
						 | 
					@ -1,9 +1,12 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CounterController < ApplicationController
 | 
					class CounterController < ApplicationController
 | 
				
			||||||
  before_action :associate!
 | 
					  before_action :associate!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def show; end
 | 
					  def show; end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private
 | 
					  private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def associate!
 | 
					  def associate!
 | 
				
			||||||
    redirect_to cluster_path unless session[:cluster]
 | 
					    redirect_to cluster_path unless session[:cluster]
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module ApplicationHelper
 | 
					module ApplicationHelper
 | 
				
			||||||
  def component(component_name, locals = {}, &block)
 | 
					  def component(component_name, locals = {}, &block)
 | 
				
			||||||
    name = component_name.split("_").first
 | 
					    name = component_name.split('_').first
 | 
				
			||||||
    render("components/#{name}/#{component_name}", locals, &block)
 | 
					    render("components/#{name}/#{component_name}", locals, &block)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,2 +1,4 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module ClusterHelper
 | 
					module ClusterHelper
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,2 +1,4 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module CounterHelper
 | 
					module CounterHelper
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Generator for building scaffolding frontend components.
 | 
					# Generator for building scaffolding frontend components.
 | 
				
			||||||
# e.g. rails g component NAME
 | 
					# e.g. rails g component NAME
 | 
				
			||||||
class ComponentGenerator < Rails::Generators::Base
 | 
					class ComponentGenerator < Rails::Generators::Base
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require 'test_helper'
 | 
					require 'test_helper'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ClusterControllerTest < ActionDispatch::IntegrationTest
 | 
					class ClusterControllerTest < ActionDispatch::IntegrationTest
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,5 @@
 | 
				
			||||||
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
require 'test_helper'
 | 
					require 'test_helper'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CounterControllerTest < ActionDispatch::IntegrationTest
 | 
					class CounterControllerTest < ActionDispatch::IntegrationTest
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue
	
	Block a user