Module: Intra::Authenticatable

Defined in:
lib/intra/authenticatable.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/intra/authenticatable.rb', line 3

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    def reset_remember_token!
      update remember_token: SecureRandom.hex
    end
  end
end