Module: CzAuth::RequiresAuthentication::ClassMethods

Defined in:
lib/cz_auth/requires_authentication.rb

Instance Method Summary collapse

Instance Method Details

#requires_authentication(options = {}) ⇒ Object



7
8
9
10
# File 'lib/cz_auth/requires_authentication.rb', line 7

def requires_authentication(options = {})
  has_secure_password
  before_create { generate_token(:auth_token) }
end