Sha256: cddfc0a6666f25a5d08923a98b4f0c0cd133aba5546641fa645900a6598e2a01
Contents?: true
Size: 367 Bytes
Versions: 37
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true module ActiveStorage::SetBlob #:nodoc: extend ActiveSupport::Concern included do before_action :set_blob end private def set_blob @blob = ActiveStorage::Blob.find_signed!(params[:signed_blob_id] || params[:signed_id]) rescue ActiveSupport::MessageVerifier::InvalidSignature head :not_found end end
Version data entries
37 entries across 37 versions & 4 rubygems