Sha256: 756929b59c25457398905f937a16e0f86a4779bcb6bff37655e3aaccc31ec1d7

Contents?: true

Size: 370 Bytes

Versions: 29

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Shimmer
  module Auth
    module Device
      extend ActiveSupport::Concern

      included do
        has_secure_token

        def name
          [browser.platform.name, browser.name].join(" ")
        end

        private

        def browser
          @browser ||= Browser.new user_agent
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shimmer-0.0.21 lib/shimmer/auth/device.rb
shimmer-0.0.20 lib/shimmer/auth/device.rb
shimmer-0.0.19 lib/shimmer/auth/device.rb
shimmer-0.0.18 lib/shimmer/auth/device.rb
shimmer-0.0.17 lib/shimmer/auth/device.rb
shimmer-0.0.16 lib/shimmer/auth/device.rb
shimmer-0.0.15 lib/shimmer/auth/device.rb
shimmer-0.0.14 lib/shimmer/auth/device.rb
shimmer-0.0.13 lib/shimmer/auth/device.rb