Skip to content

Commit eb11421

Browse files
committed
Fix developer key manual generation doc
the current code doesn't work because of the attr_accessible on DeveloperKey Change-Id: Id6cf7a3eab5808c05c22c43e6095ab6011ec0f76 Reviewed-on: https://gerrit.instructure.com/12275 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Zach Pendleton <zachp@instructure.com>
1 parent d16318c commit eb11421

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

doc/api/oauth.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ client\_secret for your application. There isn't yet any UI for
5252
generating these keys, so you will need to generate an API key from the Rails console:
5353

5454
$ script/console
55-
> key = DeveloperKey.create!(
56-
:email => 'your_email',
57-
:user_name => 'your name',
58-
:account => Account.default)
59-
> puts "client_id: #{key.id} client_secret: #{key.api_key}"
55+
> key = DeveloperKey.create! { |k|
56+
k.email = 'your_email'
57+
k.user_name = 'your name'
58+
k.account = Account.default
59+
}
60+
> puts "client_id: #{key.global_id} client_secret: #{key.api_key}"
6061

6162
Web Application Flow
6263
--------------------

0 commit comments

Comments
 (0)