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
|