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

Format belongs_to URLs #260

Merged
merged 2 commits into from
Jul 26, 2017
Merged

Format belongs_to URLs #260

merged 2 commits into from
Jul 26, 2017

Conversation

asonix
Copy link
Contributor

@asonix asonix commented Jun 21, 2017

When using the dasherized formatter, I discovered that URLs created for belongs_to associations did not get dasherized. For example .where(some_table_id: 5) becomes /some_table/5 rather than /some-table/5. This pull request fixes that issue.

@chingor13
Copy link
Collaborator

Thanks for this. Can you add a test for this so that we don't regress in the future?

@chingor13 chingor13 merged commit 1e87d58 into JsonApiClient:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants