Sha256: 30951793b79a1d59d0589dc69e9872bd6ad213a032c58f34e8e35d312a4b13fd

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

module Unidom::Visitor::Concerns::AsCredential

  extend ActiveSupport::Concern

  included do |includer|

    has_one :authenticating, class_name: 'Unidom::Visitor::Authenticating', as: :credential

    def authenticate!(it, at: Time.now, flag_code: 'RQRD')
      return authenticating if authenticating.present?
      create_authenticating! visitor: it, flag_code: flag_code, opened_at: at
    end

  end

  module ClassMethods
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unidom-visitor-1.7 app/models/unidom/visitor/concerns/as_credential.rb
unidom-visitor-1.6 app/models/unidom/visitor/concerns/as_credential.rb