module

ActiveStorage

Constants

SUPPORTED_IMAGE_PROCESSING_METHODS = ["adaptive_blur", "adaptive_resize", "adaptive_sharpen", "adjoin", "affine", "alpha", "annotate", "antialias", "append", "attenuate", "authenticate", "auto_gamma", "auto_level", "auto_orient", "auto_threshold", "backdrop", "background", "bench", "bias", "bilateral_blur", "black_point_compensation", "black_threshold", "blend", "blue_primary", "blue_shift", "blur", "border", "bordercolor", "borderwidth", "brightness_contrast", "cache", "canny", "caption", "channel", "channel_fx", "charcoal", "chop", "clahe", "clamp", "clip", "clip_path", "clone", "clut", "coalesce", "colorize", "colormap", "color_matrix", "colors", "colorspace", "colourspace", "color_threshold", "combine", "combine_options", "comment", "compare", "complex", "compose", "composite", "compress", "connected_components", "contrast", "contrast_stretch", "convert", "convolve", "copy", "crop", "cycle", "deconstruct", "define", "delay", "delete", "density", "depth", "descend", "deskew", "despeckle", "direction", "displace", "dispose", "dissimilarity_threshold", "dissolve", "distort", "dither", "draw", "duplicate", "edge", "emboss", "encoding", "endian", "enhance", "equalize", "evaluate", "evaluate_sequence", "extent", "extract", "family", "features", "fft", "fill", "filter", "flatten", "flip", "floodfill", "flop", "font", "foreground", "format", "frame", "function", "fuzz", "fx", "gamma", "gaussian_blur", "geometry", "gravity", "grayscale", "green_primary", "hald_clut", "highlight_color", "hough_lines", "icongeometry", "iconic", "identify", "ift", "illuminant", "immutable", "implode", "insert", "intensity", "intent", "interlace", "interline_spacing", "interpolate", "interpolative_resize", "interword_spacing", "kerning", "kmeans", "kuwahara", "label", "lat", "layers", "level", "level_colors", "limit", "limits", "linear_stretch", "linewidth", "liquid_rescale", "list", "log", "loop", "lowlight_color", "magnify", "map", "mattecolor", "median", "mean_shift", "metric", "mode", "modulate", "moments", "monitor", "monochrome", "morph", "morphology", "mosaic", "motion_blur", "name", "negate", "noise", "normalize", "opaque", "ordered_dither", "orient", "page", "paint", "pause", "perceptible", "ping", "pointsize", "polaroid", "poly", "posterize", "precision", "preview", "process", "quality", "quantize", "quiet", "radial_blur", "raise", "random_threshold", "range_threshold", "red_primary", "regard_warnings", "region", "remote", "render", "repage", "resample", "resize", "resize_to_fill", "resize_to_fit", "resize_to_limit", "resize_and_pad", "respect_parentheses", "reverse", "roll", "rotate", "sample", "sampling_factor", "scale", "scene", "screen", "seed", "selective_blur", "separate", "sepia_tone", "shade", "shadow", "shared_memory", "sharpen", "shave", "shear", "sigmoidal_contrast", "silent", "similarity_threshold", "size", "sketch", "smush", "snaps", "solarize", "sort_pixels", "sparse_color", "splice", "spread", "statistic", "stegano", "stereo", "storage_type", "stretch", "strip", "stroke", "strokewidth", "style", "subimage_search", "swap", "swirl", "synchronize", "taint", "text_font", "threshold", "thumbnail", "tile_offset", "tint", "title", "transform", "transparent", "transparent_color", "transpose", "transverse", "treedepth", "trim", "type", "undercolor", "unique_colors", "units", "unsharp", "update", "valid_image", "view", "vignette", "virtual_pixel", "visual", "watermark", "wave", "wavelet_denoise", "weight", "white_balance", "white_point", "white_threshold", "window", "window_group"] of ::String

The gem's allowlist (mattr_accessor :supported_image_processing_methods, extended by app config in the engine) for the mini_magick transformer.

UNSUPPORTED_IMAGE_PROCESSING_ARGUMENTS = ["-debug", "-display", "-distribute-cache", "-help", "-path", "-print", "-set", "-verbose", "-version", "-write", "-write-mask"] of ::String

The gem's engine default (unsupported_image_processing_arguments).

VERSION = "0.1.0"

Class methods

content_disposition_with(filename : String, disposition : String = "inline") : String

The gem's Service#content_disposition_with → ActionDispatch::Http::ContentDisposition.format (inline default): inline; filename="<sanitized>"; filename*=UTF-8''<sanitized>

Source
disk_url_base

Base URL for Disk direct-upload/service URLs (the gem builds absolute URLs from ActiveStorage::Current.url_options; the port keeps it a class property — empty means path-only URLs).

Source
disk_url_base=(disk_url_base : String)

Base URL for Disk direct-upload/service URLs (the gem builds absolute URLs from ActiveStorage::Current.url_options; the port keeps it a class property — empty means path-only URLs).

Source
routes

Route definitions for the app's CRails.application.routes.draw block:

CRails.application.routes.draw do active_storage ... end

(active_storage is defined on CRails::Routes::Drawer below — the draw block delegates bare calls to the drawer.)

Source
service
Source
service=(service : Service)
Source
service_name
Source
service_urls_expire_in

ActiveStorage.service_urls_expire_in (5 minutes in the gem).

Source
service_urls_expire_in=(service_urls_expire_in : Int32)

ActiveStorage.service_urls_expire_in (5 minutes in the gem).

Source
supported_image_processing_methods
Source
unsupported_image_processing_arguments
Source
variant_processor
Source
variant_processor=(processor : Symbol) : Nil
Source
variant_transformer

The gem resolves this in after_initialize; the port resolves lazily from variant_processor (no railtie yet), reset when the processor changes.

Source
variant_transformer=(klass : Transformers::Transformer.class) : Nil
Source
verifier

The blob_id/token verifier (the gem wires Rails.application.message_verifier("ActiveStorage") — SHA256, url_safe, JSON serializer). Secret: CRAILS_SECRET_KEY_BASE (the app's secret_key_base) with a fixed development fallback.

Source
verifier=(verifier : ActiveSupport::MessageVerifier)

The blob_id/token verifier (the gem wires Rails.application.message_verifier("ActiveStorage") — SHA256, url_safe, JSON serializer). Secret: CRAILS_SECRET_KEY_BASE (the app's secret_key_base) with a fixed development fallback.

Source

Nested types