Skip to content

Commit 0b70347

Browse files
committed
REW-2045 - rename MAX_EXPIRY to LINK_MAX_EXPIRY
1 parent 045e4e2 commit 0b70347

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/concerns/csv2db/active_storage_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Csv2db::ActiveStorageAdapter
33

44
extend ActiveSupport::Concern
55
FILE_TYPE = 'text/csv'.freeze
6-
MAX_EXPIRY = 7.days.to_s.freeze
6+
LINK_MAX_EXPIRY = 7.days.to_s.freeze
77

88
included do
99
has_one_attached Csv2db.config.file_attachment_name
@@ -28,7 +28,7 @@ def file=(file)
2828
self.file_name = filename
2929
end
3030

31-
def expiring_link(expires_in: MAX_EXPIRY)
31+
def expiring_link(expires_in: LINK_MAX_EXPIRY)
3232
return unless file_attachment.present?
3333

3434
set_current_host

0 commit comments

Comments
 (0)