Sha256: 53fdd035ce34ec1401d189640ca1dff89bc58c0225f489f453ded45b78516edf
Contents?: true
Size: 561 Bytes
Versions: 9
Compression:
Stored size: 561 Bytes
Contents
# -*- coding: utf-8 -*- # == Schema Information # Schema version: 20090529051529 # # Table name: sessions # # id :integer not null, primary key # created_at :datetime not null # updated_at :datetime not null, index_sessions_on_updated_at # session_id :string(64) not null, index_sessions_on_session_id(unique) # 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
Version data entries
9 entries across 9 versions & 2 rubygems