Sha256: ee6012686188bc83fd8eda9269b723b4300b5fed06d05c6bc292804a037143d1

Contents?: true

Size: 441 Bytes

Versions: 53

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

53 entries across 53 versions & 1 rubygems

Version Path
satis-2.1.53 lib/satis/action_controller_helpers.rb
satis-2.1.52 lib/satis/action_controller_helpers.rb
satis-2.1.51 lib/satis/action_controller_helpers.rb
satis-2.1.50 lib/satis/action_controller_helpers.rb
satis-2.1.49 lib/satis/action_controller_helpers.rb
satis-2.1.48 lib/satis/action_controller_helpers.rb
satis-2.1.47 lib/satis/action_controller_helpers.rb
satis-2.1.46 lib/satis/action_controller_helpers.rb
satis-2.1.45 lib/satis/action_controller_helpers.rb
satis-2.1.44 lib/satis/action_controller_helpers.rb
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