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

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activestorage-7.0.8.7/app/controllers/active_storage/representations/base_controller.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.0.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.2.2.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.1.5.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.0.8.7 app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.0 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.2.2 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.1.5 app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.0.rc2 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.2.1.2 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.1.4.2 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.0.8.6 app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.0.rc1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.2.1.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.1.4.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-7.0.8.5 app/controllers/active_storage/representations/base_controller.rb
activestorage-8.0.0.beta1 app/controllers/active_storage/representations/base_controller.rb
omg-activestorage-8.0.0.alpha9 app/controllers/active_storage/representations/base_controller.rb