Sha256: 6ea6f9e9e5d37a997c8271b5e53515de2f8df9dfbc37ee2330d910210d6ba175

Contents?: true

Size: 270 Bytes

Versions: 28

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

# The base controller for all ActiveStorage controllers.
class ActiveStorage::BaseController < ActionController::Base
  protect_from_forgery with: :exception

  before_action do
    ActiveStorage::Current.host = request.base_url
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
activestorage-5.2.8.1 app/controllers/active_storage/base_controller.rb
activestorage-5.2.8 app/controllers/active_storage/base_controller.rb
activestorage-5.2.7.1 app/controllers/active_storage/base_controller.rb
activestorage-5.2.7 app/controllers/active_storage/base_controller.rb
activestorage-5.2.6.3 app/controllers/active_storage/base_controller.rb
activestorage-5.2.6.2 app/controllers/active_storage/base_controller.rb
activestorage-5.2.6.1 app/controllers/active_storage/base_controller.rb
activestorage-5.2.6 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.6 app/controllers/active_storage/base_controller.rb
activestorage-5.2.5 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.5 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.4 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.3 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.2 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.1 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4 app/controllers/active_storage/base_controller.rb
activestorage-5.2.4.rc1 app/controllers/active_storage/base_controller.rb
spiral_form-0.1.1 vendor/bundle/gems/activestorage-5.2.3/app/controllers/active_storage/base_controller.rb
spiral_form-0.1.0 vendor/bundle/gems/activestorage-5.2.3/app/controllers/active_storage/base_controller.rb
activestorage-5.2.3 app/controllers/active_storage/base_controller.rb