class Shrine

Included Modules

Extended Modules

Defined in:

shrine.cr
shrine/attacher.cr
shrine/plugins/add_metadata.cr
shrine/plugins/column.cr
shrine/plugins/determine_mime_type.cr
shrine/plugins/store_dimensions.cr
shrine/storage/base.cr
shrine/storage/file_system.cr
shrine/storage/memory.cr
shrine/storage/s3.cr
shrine/uploaded_file.cr

Constant Summary

HABITAT_SETTINGS = [{decl: storages : Hash(String, Storage::Base) = Hash(String, Storage::Base).new, example: nil, validation: nil}] of Nil
Log = ::Log.for("shrine.cr")
PLUGINS = [] of Nil

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from module Shrine::InstanceMethods

generate_location(io : IO | UploadedFile, metadata, **options) generate_location, generate_uid(io) generate_uid, storage storage, storage_key : String storage_key, upload(io : IO | UploadedFile, **options) upload, warn(message) warn

Constructor methods inherited from module Shrine::InstanceMethods

new(storage_key : String) new

Class Method Detail

def self.configure(&) #

[View source]
def self.plugin_settings #

[View source]
def self.settings #

[View source]

Instance Method Detail

def settings #

[View source]

Macro Detail

macro finalize_plugins! #

[View source]
macro load_plugin(plugin, **args) #

[View source]