Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/mcary/ruby-openid
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Chen committed Mar 23, 2012
2 parents f4b14d8 + dc26a4c commit bf5c85a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/active_record_openid_store/README
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ You may garbage collect unused nonces and expired associations using
the gc instance method of ActiveRecordOpenIDStore. Hook it up to a
task in your app's Rakefile like so:

desc 'GC OpenID store'
desc 'GC OpenID store, deleting expired nonces and associations'
task :gc_openid_store => :environment do
ActiveRecordOpenIDStore.new.cleanup
require 'openid_ar_store'
nonces, associations = ActiveRecordStore.new.cleanup
puts "Deleted #{nonces} nonces, #{associations} associations"
end

Run it by typing:
Expand Down

0 comments on commit bf5c85a

Please sign in to comment.