aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2018-10-06 12:09:32 +0900
committerGitHub <noreply@github.com>2018-10-06 12:09:32 +0900
commit6aa9fa482a4392fa128481e42d8a3bd31a370829 (patch)
treed7eac37e1fd583e5e029b81a49503609142d75cb /guides
parent4ad7bbf1d298ea458ced6b10222566b5934b8c3e (diff)
parentf25de2c818e119df620e45e31d7edec281cf7e96 (diff)
downloadrails-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
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_storage_overview.md8
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.