]> cat aescling's git repositories - mastodon.git/commitdiff
Removes timestamp from URLs. (#2185)
authorAsh Furrow <ash@ashfurrow.com>
Thu, 20 Apr 2017 01:54:24 +0000 (21:54 -0400)
committerEugen <eugen@zeonfederated.com>
Thu, 20 Apr 2017 01:54:24 +0000 (03:54 +0200)
config/initializers/paperclip.rb

index 9e2996faa03c80f58ac4281c95d3b1a811f8bcb6..d0dd613d0b482e7f127a87e29f08f36678ebdc93 100644 (file)
@@ -18,6 +18,7 @@ if ENV['S3_ENABLED'] == 'true'
   Paperclip::Attachment.default_options[:s3_headers]     = { 'Cache-Control' => 'max-age=315576000' }
   Paperclip::Attachment.default_options[:s3_permissions] = ENV.fetch('S3_PERMISSION') { 'public-read' }
   Paperclip::Attachment.default_options[:s3_region]      = ENV.fetch('S3_REGION') { 'us-east-1' }
+  Paperclip::Attachment.default_options[:use_timestamp]  = false
 
   Paperclip::Attachment.default_options[:s3_credentials] = {
     bucket: ENV.fetch('S3_BUCKET'),