diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-08-02 14:22:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 14:22:56 -0400 |
commit | 5aeac576dccaacab12a0420ed795cb4a437fec4c (patch) | |
tree | 15e3dd06455877e6e702e898e2b8fce8592d3cef /activestorage/test/dummy/config/environments | |
parent | c6974229d018b73f70e38ca8c8862473870d0274 (diff) | |
parent | 815d1abf3962d65c0bb9043c99a507580b4360df (diff) | |
download | rails-5aeac576dccaacab12a0420ed795cb4a437fec4c.tar.gz rails-5aeac576dccaacab12a0420ed795cb4a437fec4c.tar.bz2 rails-5aeac576dccaacab12a0420ed795cb4a437fec4c.zip |
Merge pull request #30046 from kamipo/fix_string_literals_violations_for_active_storage
Fix `Style/StringLiterals` violations for Active Storage
Diffstat (limited to 'activestorage/test/dummy/config/environments')
3 files changed, 4 insertions, 4 deletions
diff --git a/activestorage/test/dummy/config/environments/development.rb b/activestorage/test/dummy/config/environments/development.rb index 503375dede..5f3d463210 100644 --- a/activestorage/test/dummy/config/environments/development.rb +++ b/activestorage/test/dummy/config/environments/development.rb @@ -13,12 +13,12 @@ Rails.application.configure do config.consider_all_requests_local = true # Enable/disable caching. By default caching is disabled. - if Rails.root.join('tmp/caching-dev.txt').exist? + if Rails.root.join("tmp/caching-dev.txt").exist? config.action_controller.perform_caching = true config.cache_store = :memory_store config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}" + "Cache-Control" => "public, max-age=#{2.days.seconds.to_i}" } else config.action_controller.perform_caching = false diff --git a/activestorage/test/dummy/config/environments/production.rb b/activestorage/test/dummy/config/environments/production.rb index 35a30e084a..343da23f0b 100644 --- a/activestorage/test/dummy/config/environments/production.rb +++ b/activestorage/test/dummy/config/environments/production.rb @@ -21,7 +21,7 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier diff --git a/activestorage/test/dummy/config/environments/test.rb b/activestorage/test/dummy/config/environments/test.rb index 4380dfc0cd..4f2c048600 100644 --- a/activestorage/test/dummy/config/environments/test.rb +++ b/activestorage/test/dummy/config/environments/test.rb @@ -15,7 +15,7 @@ Rails.application.configure do # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}" + "Cache-Control" => "public, max-age=#{1.hour.seconds.to_i}" } # Show full error reports and disable caching. |