Skip to content

Commit

Permalink
Close #8200 Incorrect example - locals hook
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwondercorn authored and locks committed Apr 3, 2020
1 parent 172e2b4 commit 9af5fb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/models/blueprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ let Blueprint = CoreObject.extend({
When the following is called on the command line:
```sh
ember generate controller foo --type=array --dry-run
ember generate controller foo --type=array --dry-run isAdmin:true
```
The object passed to `locals` looks like this:
Expand All @@ -536,10 +536,12 @@ let Blueprint = CoreObject.extend({
entity: {
name: 'foo',
options: {
type: 'array'
isAdmin: true
}
},
dryRun: true
type: "array"
// more keys
}
```
Expand Down

0 comments on commit 9af5fb1

Please sign in to comment.