aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/config
diff options
context:
space:
mode:
authorclaudiob <claudiob@users.noreply.github.com>2017-08-03 11:41:23 -0700
committerclaudiob <claudiob@users.noreply.github.com>2017-08-03 11:43:08 -0700
commit9d636c9e2fae61712164c9293d947547443fed5e (patch)
tree07795e469a2b36a66bd83075439f4474296dbc78 /activestorage/config
parent6b40fed4e254ed41a7093b57182259dcefeee3b8 (diff)
downloadrails-9d636c9e2fae61712164c9293d947547443fed5e.tar.gz
rails-9d636c9e2fae61712164c9293d947547443fed5e.tar.bz2
rails-9d636c9e2fae61712164c9293d947547443fed5e.zip
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)
Diffstat (limited to 'activestorage/config')
-rw-r--r--activestorage/config/routes.rb2
1 files changed, 1 insertions, 1 deletions
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