app/models/session.rb in okkez-multi_auth-0.0.4 vs app/models/session.rb in okkez-multi_auth-0.0.5
- old
+ new
@@ -1,5 +1,6 @@
+# -*- coding: utf-8 -*-
# == Schema Information
# Schema version: 20090529051529
#
# Table name: sessions
#
@@ -10,9 +11,12 @@
# data :text
#
# セッション
class Session < ActiveRecord::Base
+
+ untranslate_all
+
def self.cleanup(seconds)
self.delete_all(["(sessions.updated_at < ?)", Time.now - seconds])
return nil
end
end