diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-06-01 07:59:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 07:59:55 -0400 |
commit | c61d67296c2e8a0682779c2f4eb9acea0c4b4a7e (patch) | |
tree | fea6ef39b7acea04f5f4521e59e0dc8d817170ba | |
parent | b257a2d9b3009f1b9cbfc56c5ba1bd07b7263af9 (diff) | |
parent | 4fa429549f0c4890821dcbf649ab88240ec1e0e2 (diff) | |
download | rails-c61d67296c2e8a0682779c2f4eb9acea0c4b4a7e.tar.gz rails-c61d67296c2e8a0682779c2f4eb9acea0c4b4a7e.tar.bz2 rails-c61d67296c2e8a0682779c2f4eb9acea0c4b4a7e.zip |
Merge pull request #33040 from ybakos/guides/active_storage_overview_example_syntax_fix
Remove 'Current.' prefix from example.
-rw-r--r-- | guides/source/active_storage_overview.md | 4 |
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` |