Sha256: 432e282a521d7f4a73fca4d4fe0b204a6a8b2bfa801347cfbd5c94d5f965e2ee
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module Alchemy::Custom::Model::ElFinder module Paths class File < ActiveRecordReference def full_fill_paylod(payload) payload[:original_url] = ::Alchemy::Engine.routes.url_helpers.download_attachment_path(id: active_record_instance.id, name: active_record_instance.slug) payload end def active_record_class ::Alchemy::Attachment end def global_id active_record_instance.to_signed_global_id.to_s end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy-custom-model-3.2 | lib/alchemy/custom/model/el_finder/paths/file.rb |
alchemy-custom-model-3.1.5 | lib/alchemy/custom/model/el_finder/paths/file.rb |