User: don't export id to json; consumers should use username as pk

This commit is contained in:
joshua stein 2012-12-18 17:26:29 -06:00
parent 109718ba90
commit d64f713054

View file

@ -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,
])