Skip to content

Commit a5af8e2

Browse files
committed
fix a few code style offenses per rubocop
1 parent 0cf18d8 commit a5af8e2

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

config/application.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require File.expand_path('../boot', __FILE__)
1+
require File.expand_path("../boot", __FILE__)
22

3-
require 'rails/all'
3+
require "rails/all"
44

55
# Require the gems listed in Gemfile, including any gems
66
# you've limited to :test, :development, or :production.

config/boot.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
1+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
22

3-
require 'bundler/setup' # Set up gems listed in the Gemfile.
3+
require "bundler/setup" # Set up gems listed in the Gemfile.

config/environment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load the Rails application.
2-
require File.expand_path('../application', __FILE__)
2+
require File.expand_path("../application", __FILE__)
33

44
# Initialize the Rails application.
55
Rails.application.initialize!

config/environments/development.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
config.consider_all_requests_local = true
1414

1515
# Enable/disable caching. By default caching is disabled.
16-
if Rails.root.join('tmp/caching-dev.txt').exist?
16+
if Rails.root.join("tmp/caching-dev.txt").exist?
1717
config.action_controller.perform_caching = true
1818

1919
config.action_mailer.perform_caching = false
2020

2121
config.cache_store = :memory_store
2222
config.public_file_server.headers = {
23-
'Cache-Control' => 'public, max-age=172800'
23+
"Cache-Control" => "public, max-age=172800"
2424
}
2525
else
2626
config.action_controller.perform_caching = false

config/environments/production.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Disable serving static files from the `/public` folder by default since
1818
# Apache or NGINX already handles this.
19-
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
19+
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
2020

2121
# Compress JavaScripts and CSS.
2222
config.assets.js_compressor = :uglifier
@@ -50,7 +50,7 @@
5050
config.log_level = :debug
5151

5252
# Prepend all log lines with the following tags.
53-
config.log_tags = [ :request_id ]
53+
config.log_tags = [:request_id]
5454

5555
# Use a different logger for distributed setups.
5656
# require 'syslog/logger'

config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Configure public file server for tests with Cache-Control for performance.
1616
config.public_file_server.enabled = true
1717
config.public_file_server.headers = {
18-
'Cache-Control' => 'public, max-age=3600'
18+
"Cache-Control" => "public, max-age=3600"
1919
}
2020

2121
# Show full error reports and disable caching.

config/initializers/assets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Be sure to restart your server when you modify this file.
22

33
# Version of your assets, change this if you want to expire all your assets.
4-
Rails.application.config.assets.version = '1.0'
4+
Rails.application.config.assets.version = "1.0"
55

66
# Add folder with webpack generated assets to assets.paths
77
Rails.application.config.assets.paths << Rails.root.join("app", "assets", "webpack")

0 commit comments

Comments
 (0)