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.4.4 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.3 app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.2 app/controllers/active_storage/representations/base_controller.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/app/controllers/active_storage/representations/base_controller.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4.1 app/controllers/active_storage/representations/base_controller.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activestorage-6.1.4/app/controllers/active_storage/representations/base_controller.rb
activestorage-6.1.4 app/controllers/active_storage/representations/base_controller.rb