mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Trivial typo fix
Only one character, but it needs to be done
This commit is contained in:
parent
3eb8c89c04
commit
87cb006374
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
|||
# Returns the URL of the blob on the service. This URL is intended to be short-lived for security and not used directly
|
||||
# with users. Instead, the `service_url` should only be exposed as a redirect from a stable, possibly authenticated URL.
|
||||
# Hiding the `service_url` behind a redirect also gives you the power to change services without updating all URLs. And
|
||||
# it allows permanent URLs that redirec to the `service_url` to be cached in the view.
|
||||
# it allows permanent URLs that redirect to the `service_url` to be cached in the view.
|
||||
def service_url(expires_in: 5.minutes, disposition: :inline)
|
||||
service.url key, expires_in: expires_in, disposition: disposition, filename: filename, content_type: content_type
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue