Skip to content

Respond to #6

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 3 commits into from
Jun 10, 2014
Merged

Respond to #6

merged 3 commits into from
Jun 10, 2014

Conversation

elstgav
Copy link
Contributor

@elstgav elstgav commented Jun 10, 2014

Currently a client resource will return false for .respond_to?(attribute) even though we dynamically add attribute methods with method_missing. This pull request adds a respond_to? method that correctly responds for dynamic attribute methods.

Borrowed from http://technicalpickles.com/posts/using-method_missing-and-respond_to-to-create-dynamic-methods/.

chingor13 added a commit that referenced this pull request Jun 10, 2014
@chingor13 chingor13 merged commit c19a505 into JsonApiClient:master Jun 10, 2014
@elstgav elstgav deleted the respond_to branch June 10, 2014 20:40
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