[ci skip] Use different bucket name for clarity

Currently the service specified here is `:s3` and it could be confused for the `Service::S3Service`. The modified code example shows more clarity to the reader that the service in this case here refers to the bucket name outlined in `storage.yml` rather than the adapter service.
This commit is contained in:
Maple Ong 2023-07-17 15:03:23 -04:00 committed by Maple Ong
parent 3faa629f17
commit 3fd850fe0b
1 changed files with 2 additions and 2 deletions

View File

@ -424,11 +424,11 @@ user.avatar.attached?
```
In some cases you might want to override a default service for a specific attachment.
You can configure specific services per attachment using the `service` option:
You can configure specific services per attachment using the `service` option with the name of your service:
```ruby
class User < ApplicationRecord
has_one_attached :avatar, service: :s3
has_one_attached :avatar, service: :google
end
```