aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage/attachment.rb
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/app/models/active_storage/attachment.rb
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/app/models/active_storage/attachment.rb')
-rw-r--r--activestorage/app/models/active_storage/attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/attachment.rb b/activestorage/app/models/active_storage/attachment.rb
index 2c8b7a9cf2..8829967ebf 100644
--- a/activestorage/app/models/active_storage/attachment.rb
+++ b/activestorage/app/models/active_storage/attachment.rb
@@ -1,7 +1,7 @@
require "active_storage/blob"
require "active_support/core_ext/module/delegation"
-# Attachments associate records with blobs. Usually that's a one record-many blobs relationship,
+# Attachments associate records with blobs. Usually that's a one record-many blobs relationship,
# but it is possible to associate many different records with the same blob. If you're doing that,
# you'll want to declare with `has_one/many_attached :thingy, dependent: false`, so that destroying
# any one record won't destroy the blob as well. (Then you'll need to do your own garbage collecting, though).