File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ module.exports = function(Role) {
3636 Role . resolveRelatedModels = function ( ) {
3737 if ( ! this . userModel ) {
3838 var reg = this . registry ;
39- this . roleMappingModel = reg . getModelByType ( loopback . RoleMapping ) ;
40- this . userModel = reg . getModelByType ( loopback . User ) ;
41- this . applicationModel = reg . getModelByType ( loopback . Application ) ;
39+ this . roleMappingModel = reg . getModelByType ( ' RoleMapping' ) ;
40+ this . userModel = reg . getModelByType ( ' User' ) ;
41+ this . applicationModel = reg . getModelByType ( ' Application' ) ;
4242 }
4343 } ;
4444
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ describe('role model', function() {
4545 ACL . roleMappingModel = RoleMapping ;
4646 ACL . userModel = User ;
4747 ACL . applicationModel = Application ;
48- Role . roleMappingModel = RoleMapping ;
49- Role . userModel = User ;
50- Role . applicationModel = Application ;
5148 } ) ;
5249
5350 it ( 'should define role/role relations' , function ( done ) {
You can’t perform that action at this time.
0 commit comments