app/models/casino/user.rb in casino-4.0.3 vs app/models/casino/user.rb in casino-4.1.0

- old
+ new

@@ -2,9 +2,10 @@ class CASino::User < ActiveRecord::Base serialize :extra_attributes, Hash has_many :ticket_granting_tickets has_many :two_factor_authenticators + has_many :login_attempts def active_two_factor_authenticator self.two_factor_authenticators.where(active: true).first end end