Sha256: ee6012686188bc83fd8eda9269b723b4300b5fed06d05c6bc292804a037143d1

Contents?: true

Size: 441 Bytes

Versions: 43

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Satis
  class StsWrapper
    attr_reader :request

    def initialize(request)
      @request = request
    end

    def browser
      @browser ||= Browser.new(request.user_agent)
    end
  end

  module ActionControllerHelpers
    extend ActiveSupport::Concern

    included do
      def sts
        StsWrapper.new(request)
      end
    end

    class_methods do
      # Nothing yet
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
satis-2.1.43 lib/satis/action_controller_helpers.rb
satis-2.1.42 lib/satis/action_controller_helpers.rb
satis-2.1.41 lib/satis/action_controller_helpers.rb
satis-2.1.40 lib/satis/action_controller_helpers.rb
satis-2.1.39 lib/satis/action_controller_helpers.rb
satis-2.1.38 lib/satis/action_controller_helpers.rb
satis-2.1.37 lib/satis/action_controller_helpers.rb
satis-2.1.36 lib/satis/action_controller_helpers.rb
satis-2.1.35 lib/satis/action_controller_helpers.rb
satis-2.1.33 lib/satis/action_controller_helpers.rb
satis-2.1.31 lib/satis/action_controller_helpers.rb
satis-2.1.30 lib/satis/action_controller_helpers.rb
satis-2.1.29 lib/satis/action_controller_helpers.rb
satis-2.1.28 lib/satis/action_controller_helpers.rb
satis-2.1.27 lib/satis/action_controller_helpers.rb
satis-2.1.26 lib/satis/action_controller_helpers.rb
satis-2.1.24 lib/satis/action_controller_helpers.rb
satis-2.1.23 lib/satis/action_controller_helpers.rb
satis-2.1.22 lib/satis/action_controller_helpers.rb
satis-2.1.21 lib/satis/action_controller_helpers.rb