From 9d636c9e2fae61712164c9293d947547443fed5e Mon Sep 17 00:00:00 2001 From: claudiob Date: Thu, 3 Aug 2017 11:41:23 -0700 Subject: Make Rubocop happier about ActiveStorage Running `rubocop activestorage` before this commit resulted in 20 offenses. This commit only fixes: - Trailing whitespace detected - Space inside } missing - Put one space between the method name and the first argument. The other offenses are left since they are intentional according to @georgeclaghorn (https://github.com/rails/rails/pull/30061#issuecomment-319999190) --- activestorage/config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/config') diff --git a/activestorage/config/routes.rb b/activestorage/config/routes.rb index 6aa99c42ac..fddbb93255 100644 --- a/activestorage/config/routes.rb +++ b/activestorage/config/routes.rb @@ -9,7 +9,7 @@ Rails.application.routes.draw do resolve("ActiveStorage::Attachment") { |attachment| route_for(:rails_blob, attachment.blob) } - get "/rails/active_storage/variants/:signed_blob_id/:variation_key/*filename" => "active_storage/variants#show", as: :rails_blob_variation + get "/rails/active_storage/variants/:signed_blob_id/:variation_key/*filename" => "active_storage/variants#show", as: :rails_blob_variation direct :rails_variant do |variant| signed_blob_id = variant.blob.signed_id -- cgit v1.2.3