feat: change pj token to year/aa/bb/token to spread pjs under namespaces
This commit is contained in:
parent
8282403c07
commit
7ce7a3f62c
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ ActiveSupport.on_load(:active_storage_blob) do
|
||||||
include BlobTitreIdentiteWatermarkConcern
|
include BlobTitreIdentiteWatermarkConcern
|
||||||
include BlobVirusScannerConcern
|
include BlobVirusScannerConcern
|
||||||
include BlobSignedIdConcern
|
include BlobSignedIdConcern
|
||||||
|
|
||||||
|
def self.generate_unique_secure_token(length: MINIMUM_TOKEN_LENGTH)
|
||||||
|
token = super
|
||||||
|
"#{Time.current.year}/#{token[0..1]}/#{token[2..3]}/#{token}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ActiveSupport.on_load(:active_storage_attachment) do
|
ActiveSupport.on_load(:active_storage_attachment) do
|
||||||
|
|
Loading…
Reference in a new issue