Permalink
Browse files

feat(decorator): Added @name decorator

  • Loading branch information...
RWOverdijk committed Dec 29, 2015
1 parent ecd0d91 commit 819f65966d1bda811ac3009827a544e7f7c40643
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/decorator/name.js
@@ -0,0 +1,7 @@
import {OrmMetadata} from '../orm-metadata';
export function name(resourceName) {
return function(target) {
OrmMetadata.forTarget(target).put('name', resourceName || target.name.toLowerCase());
};
}

0 comments on commit 819f659

Please sign in to comment.