Module: AuthenticatedSystem
- Included in:
- BaseController
- Defined in:
- lib/community_engine/authenticated_system.rb
Instance Method Summary collapse
Instance Method Details
#login_by_token ⇒ Object
8 9 |
# File 'lib/community_engine/authenticated_system.rb', line 8 def login_by_token end |
#update_last_seen_at ⇒ Object
2 3 4 5 6 |
# File 'lib/community_engine/authenticated_system.rb', line 2 def update_last_seen_at return unless logged_in? User.update_all ['sb_last_seen_at = ?', Time.now.utc], ['id = ?', current_user.id] current_user.sb_last_seen_at = Time.now.utc end |