Sha256: ee9e58617341af8f0c09f6464bf18959c3db6501c233aaec49c76346fd5d9df6

Contents?: true

Size: 312 Bytes

Versions: 60

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Ibrain
  module Core
    module ControllerHelpers
      module CurrentHost
        extend ActiveSupport::Concern

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

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
ibrain-core-0.4.2 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.4.1 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.4.0 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.9 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.8 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.7.rc.pre.1 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.7 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.6.pre.rc.1 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.6 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.5 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.4 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.3.pre.rc.2 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.3.pre.rc.1 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.3 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.2.pre.rc.4 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.2.pre.rc.3 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.2.pre.rc lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.2 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.1 lib/ibrain/core/controller_helpers/current_host.rb
ibrain-core-0.3.0 lib/ibrain/core/controller_helpers/current_host.rb