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

Consistent model naming / referring #50

Closed
sprypradeep opened this issue Jul 26, 2016 · 3 comments
Closed

Consistent model naming / referring #50

sprypradeep opened this issue Jul 26, 2016 · 3 comments
Assignees
Milestone

Comments

@sprypradeep
Copy link

Although the models and APIs are referred to in Title case, the interface and models are being exported in provided case (in my case lower case). This results in errors in case you have any model name in lower case.

Following two changes correct the Title casing for properties and models: (utils.js)


    var name = c.name;
    var name = c.name[0].toUpperCase() + c.name.slice(1);
 targetClass = targetClass[0].toUpperCase() + targetClass.slice(1);
  modelClass.sharedClass.ctor.relations[scopeName].targetClass = targetClass;

@sprypradeep
Copy link
Author

The issue still appears since index.ejs refer to models/ services in Title case.

@jonathan-casarrubias
Copy link
Collaborator

This issue is already fixed, will be published in pre-release 2.0.0-rc.5

jonathan-casarrubias pushed a commit that referenced this issue Jul 26, 2016
- Fix: #50
- Fix: #52
- Fix: #53
- Fix: #54
- Fix: #55
- Added new unit tests for custom get and post remote methods
@sprypradeep
Copy link
Author

neat

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

No branches or pull requests

2 participants