Sha256: b9502971caa4dabe6b59961a768f855df1fce01e0f768220df771ac472e541fb

Contents?: true

Size: 262 Bytes

Versions: 13

Compression:

Stored size: 262 Bytes

Contents

class CASino::User < ActiveRecord::Base
  serialize :extra_attributes, Hash

  has_many :ticket_granting_tickets
  has_many :two_factor_authenticators

  def active_two_factor_authenticator
    self.two_factor_authenticators.where(active: true).first
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
casino-4.0.3 app/models/casino/user.rb
casino-4.0.2 app/models/casino/user.rb
casino-4.0.1 app/models/casino/user.rb
casino-4.0.0 app/models/casino/user.rb
casino-4.0.0.pre.2 app/models/casino/user.rb
casino-4.0.0.pre.1 app/models/casino/user.rb
casino-3.0.4 app/models/casino/user.rb
casino-3.0.3 app/models/casino/user.rb
casino-3.0.2 app/models/casino/user.rb
casino-3.0.1 app/models/casino/user.rb
casino-3.0.0 app/models/casino/user.rb
casino-3.0.0.pre.2 app/models/casino/user.rb
casino-3.0.0.pre.1 app/models/casino/user.rb