Module: Shrine::Plugins::KitheStorageLocation
- Defined in:
- lib/shrine/plugins/kithe_storage_location.rb
Overview
Set file location to “asset/#asset_uuid_id/#unique_file_id” – regardless of asset sub-class, since they all have unique ids, just all under asset/.
If no Asset pk is available (direct upload or unsaved Asset), will be stored just under “asset/#unique_file_id.#suffix”
We are choosing to store under Asset UUID PK instead of friendlier_id, friendlier_id is good for public URLs and UI, but actual PK is more reliable/immutable.
Defined Under Namespace
Modules: InstanceMethods