Skip to content

Commit

Permalink
fix(app): export tag serializer to and remove hard-coded value
Browse files Browse the repository at this point in the history
Without the export the projects would have to provide their own
serializers for the tags. Plus, the language was hard-coded.
  • Loading branch information
fkm-adfinis authored and velrest committed Nov 26, 2020
1 parent 2bf1767 commit 0847fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/document-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class DocumentDetailsComponent extends DocumentCard {
} else {
const fresh = this.store.createRecord("tag");
fresh.id = dasherize(tag);
fresh.name = { en: tag };
fresh.name = tag;

yield fresh.save();

Expand Down
1 change: 1 addition & 0 deletions app/serializers/tag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "ember-alexandria/serializers/tag";

0 comments on commit 0847fad

Please sign in to comment.