Sha256: 467bcef89b3749279b3feab35479a3fd36bcaa5f4d3ab09281ad7c8960ede422
Contents?: true
Size: 578 Bytes
Versions: 8
Compression:
Stored size: 578 Bytes
Contents
module Kithe # Derivatives by default will be stored in Shrine storage :kithe_derivatives, so # that should be registered in your app. # # Only one deriv can exist for a given asset_id/key pair, enforced by db constraint. class Derivative < ApplicationRecord # the fk is to kithe_models STI table, but we only intend for assets belongs_to :asset, class_name: "Kithe::Asset" include Kithe::DerivativeUploader::Attachment.new(:file, store: :kithe_derivatives) delegate :content_type, :size, :height, :width, :url, to: :file, allow_nil: true end end
Version data entries
8 entries across 8 versions & 1 rubygems