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

Version Path
community_engine-3.2.0 app/models/user_session.rb
community_engine-3.0.0 app/models/user_session.rb
community_engine-2.3.2 app/models/user_session.rb
community_engine-2.3.1 app/models/user_session.rb
community_engine-2.3.0 app/models/user_session.rb
community_engine-2.1.0 app/models/user_session.rb
community_engine-2.0.0 app/models/user_session.rb
community_engine-2.0.0.beta3 app/models/user_session.rb
community_engine-2.0.0.beta2 app/models/user_session.rb
community_engine-2.0.0.beta1 app/models/user_session.rb