Skip to content

Commit

Permalink
Merge pull request #34077 from cllns/clarify-activesupport-instruction
Browse files Browse the repository at this point in the history
ActiveStorage guide: Add instruction for test environment
  • Loading branch information
y-yagi committed Oct 6, 2018
2 parents 4ad7bbf + f25de2c commit 6aa9fa4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions guides/source/active_storage_overview.md
Expand Up @@ -82,6 +82,14 @@ To use the Amazon S3 service in production, you add the following to
config.active_storage.service = :amazon
```

To use the test service when testing, you add the following to
`config/environments/test.rb`:

```ruby
# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test
```

Continue reading for more information on the built-in service adapters (e.g.
`Disk` and `S3`) and the configuration they require.

Expand Down

0 comments on commit 6aa9fa4

Please sign in to comment.