Sha256: 47a1ad14b7a557f65d76fe1bd7c6f64682892891d4e81553db6e17ca9438495c
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true # Override controller in active storage library class ActiveStorage::BaseController < ActionController::Base include ActiveStorage::Streaming if defined? ActiveStorage::Streaming protect_from_forgery with: :exception self.etag_with_template_digest = false before_action do ActiveStorage::Current.url_options = { protocol: request.protocol, host: request.host, port: request.port } ActiveStorage::Current.url_options.merge! host: SETTING.host if defined? SETTING end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
rails_audit-1.0.4 | test/dummy/app/controllers/active_storage/base_controller.rb |
rails_org-0.0.1 | test/dummy/app/controllers/active_storage/base_controller.rb |