diff options
Diffstat (limited to 'app/models/token.rb')
-rw-r--r-- | app/models/token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/token.rb b/app/models/token.rb index 98745d29e..0e8c2c3e2 100644 --- a/app/models/token.rb +++ b/app/models/token.rb @@ -31,7 +31,7 @@ class Token < ActiveRecord::Base # Delete all expired tokens def self.destroy_expired - Token.delete_all ["created_on < ?", Time.now - @@validity_time] + Token.delete_all ["action <> 'feeds' AND created_on < ?", Time.now - @@validity_time] end private |