Skip to content

ctide/devise_lastseenable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devise_lastseenable

This ensures that devise will update a last_seen timestamp on the model whenever you check if a user is authenticated.

Usage

Add to your Gemfile:

gem 'devise_lastseenable'

Add the last_seen column to your database. Assuming your Devise model is called User, run:

rails generate devise_lastseenable User
rake db:migrate

In your model, add :lastseenable as such:

class User < ActiveRecord::Base
  devise ..., :lastseenable
end

Thanks to

Thanks to devise_traceable for essentially operating as the base for this gem!

Copyright © 2011 ctide. See LICENSE.txt for further details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages