Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
Latest commit 2fbfdc4 Feb 19, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test Initial commit to devise_lastseenable. Feb 14, 2011
.document Initial commit to devise_lastseenable. Feb 14, 2011
.gitignore ignore Gemfile.lock Sep 1, 2011
Gemfile fixes for newer versions of bundler Jul 22, 2015
LICENSE.txt Initial commit to devise_lastseenable. Feb 14, 2011
README.rdoc improve readme Feb 19, 2016
Rakefile fixes for newer versions of bundler Jul 22, 2015
VERSION
devise_lastseenable.gemspec Regenerate gemspec for version 0.0.6 Jul 27, 2015

README.rdoc

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

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

You can’t perform that action at this time.