Sha256: e87aa19a389b2b88cef94c62fe2defa91e6c611be27a9862b5d951418a16f994

Contents?: true

Size: 406 Bytes

Versions: 28

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

class ActiveStorage::Representations::BaseController < ActiveStorage::BaseController #:nodoc:
  include ActiveStorage::SetBlob

  before_action :set_representation

  private
    def set_representation
      @representation = @blob.representation(params[:variation_key]).processed
    rescue ActiveSupport::MessageVerifier::InvalidSignature
      head :not_found
    end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
activestorage-6.1.7.10 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.9 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.8 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.7 app/controllers/active_storage/representations/base_controller.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.6 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.5 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.4 app/controllers/active_storage/representations/base_controller.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.3 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.2 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.7 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.6.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.6 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.5.1 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.5 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.7 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.6 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.5 app/controllers/active_storage/representations/base_controller.rb