Module: AuthenticatedSystem

Included in:
BaseController
Defined in:
lib/community_engine/authenticated_system.rb

Instance Method Summary collapse

Instance Method Details

#login_by_tokenObject


8
9
# File 'lib/community_engine/authenticated_system.rb', line 8

def 
end

#update_last_seen_atObject


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