We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 045e4e2 commit 0b70347Copy full SHA for 0b70347
1 file changed
app/models/concerns/csv2db/active_storage_adapter.rb
@@ -3,7 +3,7 @@ module Csv2db::ActiveStorageAdapter
3
4
extend ActiveSupport::Concern
5
FILE_TYPE = 'text/csv'.freeze
6
- MAX_EXPIRY = 7.days.to_s.freeze
+ LINK_MAX_EXPIRY = 7.days.to_s.freeze
7
8
included do
9
has_one_attached Csv2db.config.file_attachment_name
@@ -28,7 +28,7 @@ def file=(file)
28
self.file_name = filename
29
end
30
31
- def expiring_link(expires_in: MAX_EXPIRY)
+ def expiring_link(expires_in: LINK_MAX_EXPIRY)
32
return unless file_attachment.present?
33
34
set_current_host
0 commit comments