1
0
Fork 0
oldhaven/app/models/beathaven/session.rb

8 lines
204 B
Ruby
Raw Normal View History

2011-06-22 07:23:07 +00:00
class Session < ActiveRecord::Base
belongs_to :user
2011-10-24 07:33:32 +00:00
def self.generate_key
Digest::SHA1.hexdigest(Beathaven::Application.config.secret_token + Time.now.to_f.to_s + Random.rand().to_s)
end
2011-06-22 07:23:07 +00:00
end