User: don't export id to json; consumers should use username as pk
This commit is contained in:
parent
109718ba90
commit
d64f713054
|
@ -32,9 +32,8 @@ class User < ActiveRecord::Base
|
|||
|
||||
def as_json(options = {})
|
||||
h = super(:only => [
|
||||
:id,
|
||||
:created_at,
|
||||
:username,
|
||||
:created_at,
|
||||
:is_admin,
|
||||
:is_moderator,
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue