Skip to content

Fix detecting resource class#834

Merged
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
knapo:fix-detecting-resource-class
Sep 14, 2016
Merged

Fix detecting resource class#834
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
knapo:fix-detecting-resource-class

Conversation

@knapo
Copy link
Copy Markdown
Contributor

@knapo knapo commented Sep 14, 2016

JSONAPI::Resource.resource_for can receive a camelized string (not the underscored), so checking for / presence doesn't work for such cases and string need to be underscored first.

@knapo knapo force-pushed the fix-detecting-resource-class branch 2 times, most recently from fc4516b to 9f8b815 Compare September 14, 2016 07:51
@knapo knapo force-pushed the fix-detecting-resource-class branch from 9f8b815 to 6dc9e96 Compare September 14, 2016 07:52
@lgebhardt lgebhardt merged commit c815a34 into JSONAPI-Resources:master Sep 14, 2016
@lgebhardt
Copy link
Copy Markdown
Contributor

@knapo Thanks!

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