5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-05 20:45:47 +00:00
panel/app/lib/active_storage/attached/changes/create_one_decorator.rb

20 lines
449 B
Ruby

# 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