diff options
author | Yuji Yaginuma <yuuji.yaginuma@gmail.com> | 2018-10-06 12:09:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 12:09:32 +0900 |
commit | 6aa9fa482a4392fa128481e42d8a3bd31a370829 (patch) | |
tree | d7eac37e1fd583e5e029b81a49503609142d75cb | |
parent | 4ad7bbf1d298ea458ced6b10222566b5934b8c3e (diff) | |
parent | f25de2c818e119df620e45e31d7edec281cf7e96 (diff) | |
download | rails-6aa9fa482a4392fa128481e42d8a3bd31a370829.tar.gz rails-6aa9fa482a4392fa128481e42d8a3bd31a370829.tar.bz2 rails-6aa9fa482a4392fa128481e42d8a3bd31a370829.zip |
Merge pull request #34077 from cllns/clarify-activesupport-instruction
ActiveStorage guide: Add instruction for test environment
-rw-r--r-- | guides/source/active_storage_overview.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index 71ba6184e0..d5387219f5 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -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. |