Sha256: 545e1b122049ba9d0944c089c6c4c4ebea470c73282bd3829daeb25306a2f772
Contents?: true
Size: 394 Bytes
Versions: 10
Compression:
Stored size: 394 Bytes
Contents
class UserSession < Authlogic::Session::Base find_by_login_method :find_by_login_or_email remember_me_for 2.weeks remember_me false after_create :update_user_activity private def update_user_activity controller.session[:last_active] = self.record.sb_last_seen_at controller.session[:topics] = controller.session[:forums] = {} self.record.update_last_seen_at end end
Version data entries
10 entries across 10 versions & 1 rubygems