Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relation names are still renamed #159

Closed
smashercosmo opened this issue Sep 25, 2014 · 3 comments
Closed

Relation names are still renamed #159

smashercosmo opened this issue Sep 25, 2014 · 3 comments
Milestone

Comments

@smashercosmo
Copy link

module.factory('ProjectModel', function (restmod) {
   restmod.model('rest/projects', {
      currentDetails: { hasOne: 'ProjectDetailsModel' }
   });
});

When I invoke $fetch via ProjectModel.$new(1).currentDetails.$fetch(), I still get request with renamed URL (GET /rest/projects/1/current-details)

@iobaixas
Copy link
Member

Do you think url renaming should follow the same standard set by attribute renaming? or it should use a separate configuration?

You can still override the url for the relation using the path option.

@smashercosmo
Copy link
Author

Yes, I know about the 'path' option, but I think, that at list it should be possible to disable url renaming via restmodProvider. But more flexible configuration would be double awesome of course)

@iobaixas iobaixas added this to the 1.2 milestone Sep 25, 2014
@iobaixas
Copy link
Member

I agree on that at least renaming should be consistent, I'll take a look at it tonight, thanks for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants