Class: User
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- User
- Defined in:
- lib/generators/templates/user.rb
Instance Method Summary collapse
Instance Method Details
#active_for_authentication? ⇒ Boolean
6 7 8 |
# File 'lib/generators/templates/user.rb', line 6 def active_for_authentication? super && !deactivated_at end |
#as_json ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/templates/user.rb', line 10 def as_json { email: email, first_name: first_name, last_name: last_name, slack_username: slack_username, time_zone: time_zone } end |