OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix js filer
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
user.js.coffee
1
class Pettanr.User extends Backbone.Model
\r
2
\r
3
url: '/users/'
\r
4
\r
5
defaults: {
\r
6
id: null
\r
7
}
\r
8
\r
9
author: () ->
\r
10
\r
11
artist: () ->
\r
12
\r
13
initialize: () ->
\r
14
if @id
\r
15
@url = @url + @id
\r
16
\r