projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix for bug #1242, css foreground set + css shorthands used
[rails.git]
/
app
/
models
/
user_token.rb
1
class UserToken < ActiveRecord::Base
2
belongs_to :user
3
4
def after_initialize
5
self.token = OSM::make_token() if self.token.blank?
6
self.expiry = 1.week.from_now if self.expiry.blank?
7
end
8
end