mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:51:41 +00:00
todos los archivos subidos se asocian al sitio
This commit is contained in:
parent
7f6063475b
commit
10eef47ce8
1 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveStorage
|
||||
module Attached::Changes::CreateOneDecorator
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
private
|
||||
|
||||
# A partir de ahora todos los archivos se suben al servicio de
|
||||
# cada sitio.
|
||||
def attachment_service_name
|
||||
record.name.to_sym
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
ActiveStorage::Attached::Changes::CreateOne.include ActiveStorage::Attached::Changes::CreateOneDecorator
|
Loading…
Reference in a new issue