OSDN Git Service

Extended User API to expose admin and can_create_group for user creation/updating.
authorBoyan Tabakov <boyan.tabakov@futurice.com>
Wed, 31 Jul 2013 10:52:23 +0000 (13:52 +0300)
committerBoyan Tabakov <boyan.tabakov@futurice.com>
Sun, 29 Sep 2013 08:47:29 +0000 (11:47 +0300)
commit479631aafc525efef151309ac257e60c73230ac0
tree37861481ca8fe6c26f78aa2edee3df1c7156eacd
parentcbb5b000c0c7593673683c08a402ea01a3a7f369
Extended User API to expose admin and can_create_group for user creation/updating.

Also, is_admin and can_create_group are exposed in the user information.
Fixed attributes_for_keys to process properly keys with boolean values (since false.present? is false).
doc/api/users.md
lib/api/entities.rb
lib/api/helpers.rb
lib/api/users.rb
spec/requests/api/users_spec.rb