module Jm81auth::Models::User

Constants

EMAIL_REGEX

Public Class Methods

included(base) click to toggle source
# File lib/jm81auth/models/user.rb, line 6
def self.included(base)
  base.extend ClassMethods

  base.class_eval do
    if respond_to? :has_many
      has_many :auth_methods
      has_many :auth_tokens
    else
      one_to_many :auth_methods
      one_to_many :auth_tokens
    end
  end
end