module Agilib::TokenAuthenticatable::ClassMethods

Public Instance Methods

agilib_token_authenticatable(options = {}) click to toggle source
# File lib/agilib/token_authenticatable/token_authentication.rb, line 45
def agilib_token_authenticatable(options = {})
  if Agilib.use_modules[:token_authenticatable].present?
    include Agilib::TokenAuthenticatable
    before_save :ensure_authentication_token
  end
end