mirror of https://github.com/rails/rails
[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:
parent
3faa629f17
commit
3fd850fe0b
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue