Class: Digestive::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Digestive::User
- Includes:
- Credentials
- Defined in:
- lib/digestive/user.rb
Overview
A simple User class which will function with Digestive.
Constant Summary collapse
- DIGEST_REALM =
The realm to which the user will authenticate
'[email protected]'
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ Object
The JSON representation of a User conceals the password.
Methods included from Credentials
Instance Method Details
#as_json(options = {}) ⇒ Object
The JSON representation of a User conceals the password
21 22 23 24 25 |
# File 'lib/digestive/user.rb', line 21 def as_json(={}) hash = super() hash['user']['password'] = '' hash end |