aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Bakos <ybakos@humanoriented.com>2018-06-01 02:45:12 -0400
committerYong Bakos <ybakos@humanoriented.com>2018-06-01 02:45:12 -0400
commit4fa429549f0c4890821dcbf649ab88240ec1e0e2 (patch)
tree17e5bd901ffeed0f8784c46b58683002e7fb1284
parent3875f5fccb437e5e25942f85f89a8c7c5e558006 (diff)
downloadrails-4fa429549f0c4890821dcbf649ab88240ec1e0e2.tar.gz
rails-4fa429549f0c4890821dcbf649ab88240ec1e0e2.tar.bz2
rails-4fa429549f0c4890821dcbf649ab88240ec1e0e2.zip
Remove 'Current.' prefix from example.
The prior sentence is referring just to an existing user object, so the sudden magical 'Current.' prefix doesn't make sense. Remove it.
-rw-r--r--guides/source/active_storage_overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 91ad089d40..0c465d67cf 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -248,13 +248,13 @@ end
Call `avatar.attach` to attach an avatar to an existing user:
```ruby
-Current.user.avatar.attach(params[:avatar])
+user.avatar.attach(params[:avatar])
```
Call `avatar.attached?` to determine whether a particular user has an avatar:
```ruby
-Current.user.avatar.attached?
+user.avatar.attached?
```
### `has_many_attached`