diff options
author | re4k <re4k@re4k.info> | 2013-03-28 00:48:32 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-03-28 00:48:32 +0900 |
commit | b4972590475eb595bc88f6ee47125fe8ca6e1fb2 (patch) | |
tree | 52b5e3b230953d60dc9bbfbedec335826bd471b1 /app/views/shared/_user.json.jbuilder | |
parent | 9ed0b4d86906a47ddb90270032079fd9cec360bb (diff) | |
download | aclog-b4972590475eb595bc88f6ee47125fe8ca6e1fb2.tar.gz |
Fix errors
Add some JSON APIs
Diffstat (limited to 'app/views/shared/_user.json.jbuilder')
-rw-r--r-- | app/views/shared/_user.json.jbuilder | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/shared/_user.json.jbuilder b/app/views/shared/_user.json.jbuilder index a0447c0..1bac0ad 100644 --- a/app/views/shared/_user.json.jbuilder +++ b/app/views/shared/_user.json.jbuilder @@ -1,2 +1,4 @@ json.(user, :id, :screen_name, :name, :profile_image_url) - +if @include_user_stats && user.registered? + json.stats user.stats +end |