Sha256: 10cfde3a9a1a8b60b280d3fe3a3b518800e5993d9a6a8aa65b1a1943b18527f5

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

module Trestle
  module Controller
    module Location
      extend ActiveSupport::Concern

      included do
        after_action :set_trestle_location_header, unless: :dialog_request?
      end

      def set_trestle_location_header
        headers["X-Trestle-Location"] = request.path
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trestle-0.8.12 app/controllers/concerns/trestle/controller/location.rb
trestle-0.8.11 app/controllers/concerns/trestle/controller/location.rb
trestle-0.8.10 app/controllers/concerns/trestle/controller/location.rb
trestle-0.8.9 app/controllers/concerns/trestle/controller/location.rb
trestle-0.8.8 app/controllers/concerns/trestle/controller/location.rb
trestle-0.8.7 app/controllers/concerns/trestle/controller/location.rb