aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage/variant.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-06-21 11:06:32 -0400
committerGeorge Claghorn <george@basecamp.com>2018-06-21 11:06:32 -0400
commitb21f50d8ae36d9b50b673579e17bccbe55363b34 (patch)
treea7fb19013b31f654d198196ad2566e74e103eba1 /activestorage/app/models/active_storage/variant.rb
parent9ee74265991e0e52e549e08c25e968195a4a880c (diff)
downloadrails-b21f50d8ae36d9b50b673579e17bccbe55363b34.tar.gz
rails-b21f50d8ae36d9b50b673579e17bccbe55363b34.tar.bz2
rails-b21f50d8ae36d9b50b673579e17bccbe55363b34.zip
Permit configuring the default service URL expiry
Diffstat (limited to 'activestorage/app/models/active_storage/variant.rb')
-rw-r--r--activestorage/app/models/active_storage/variant.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/variant.rb b/activestorage/app/models/active_storage/variant.rb
index 1df36e37d9..056fd2be99 100644
--- a/activestorage/app/models/active_storage/variant.rb
+++ b/activestorage/app/models/active_storage/variant.rb
@@ -79,7 +79,7 @@ class ActiveStorage::Variant
# Use <tt>url_for(variant)</tt> (or the implied form, like +link_to variant+ or +redirect_to variant+) to get the stable URL
# for a variant that points to the ActiveStorage::RepresentationsController, which in turn will use this +service_call+ method
# for its redirection.
- def service_url(expires_in: service.url_expires_in, disposition: :inline)
+ def service_url(expires_in: ActiveStorage.service_urls_expire_in, disposition: :inline)
service.url key, expires_in: expires_in, disposition: disposition, filename: filename, content_type: content_type
end