Sha256: 5ec1997568807dcecc10ac13b9d584e3f88caeb477c6227c684d068334479268
Contents?: true
Size: 486 Bytes
Versions: 78
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true class ActiveStorage::Representations::BaseController < ActiveStorage::BaseController # :nodoc: include ActiveStorage::SetBlob before_action :set_representation private def blob_scope ActiveStorage::Blob.scope_for_strict_loading end def set_representation @representation = @blob.representation(params[:variation_key]).processed rescue ActiveSupport::MessageVerifier::InvalidSignature head :not_found end end
Version data entries
78 entries across 75 versions & 8 rubygems