Skip to content

Expose link properties #36

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

Merged
merged 2 commits into from
Jun 23, 2013
Merged

Conversation

bkeepers
Copy link
Contributor

HAL defines href, templated, type, deprecation, name, profile, title, and hreflang properties on links (http://tools.ietf.org/html/draft-kelly-json-hal-05#section-5). An implementation could also chose to implement their own, so this updates #method_missing to look for link properties before delegating to the resource.

@bkeepers
Copy link
Contributor Author

Nevermind about #method_missing. It causes unpredictable behavior if properties aren't defined.

@oriolgual
Copy link
Member

Thanks, nice job!

oriolgual added a commit that referenced this pull request Jun 23, 2013
@oriolgual oriolgual merged commit 27863fa into codegram:master Jun 23, 2013
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