diff options
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_storage_overview.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index ffd81f855e..91ad089d40 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -392,7 +392,7 @@ You might want to download a blob to a file on disk so an external program (e.g. a virus scanner or media transcoder) can operate on it. Use `ActiveStorage::Blob#open` to download a blob to a tempfile on disk: -````ruby +```ruby message.video.open do |file| system '/path/to/virus/scanner', file.path # ... |