Skip to content

Commit

Permalink
fix(blueprints): fix relationships config typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davewasmer committed Feb 12, 2018
1 parent 40a1038 commit fa54cd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blueprints/model/files/app/serializers/__name__.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export default class <%= className %>Serializer extends ApplicationSerializer {

attributes = [];

relationships = [];
relationships = {};

}
6 changes: 4 additions & 2 deletions blueprints/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
upperFirst,
camelCase
camelCase,
kebabCase
} from 'lodash';
import { Blueprint, unwrap } from 'denali-cli';

Expand Down Expand Up @@ -28,7 +29,8 @@ export default class ModelBlueprint extends Blueprint {
let name = argv.name;
return {
name,
className: upperFirst(camelCase(name))
className: upperFirst(camelCase(name)),
dasherized: kebabCase(name)
};
}

Expand Down

0 comments on commit fa54cd3

Please sign in to comment.