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

Fix Aws::PageableResponse to correctly answer respond_to? with methods different than #count. #911

Merged
merged 2 commits into from
Aug 24, 2015
Merged

Fix Aws::PageableResponse to correctly answer respond_to? with methods different than #count. #911

merged 2 commits into from
Aug 24, 2015

Conversation

fertapric
Copy link
Contributor

Aws::PageableResponse::UnsafeEnumerableMethods is not forwarding respond_to? to its ancestors (using super) and it's always retuning false (except for #count). It breaks Searhorse::Client::Response#respond_to?:

response # Aws::DynamoDB::Types::QueryOutput
response.respond_to?(:items) # => false

…ods - `respond_to?` was not being forwarded to ancestors and it was always retuning `false` except for #count.
trevorrowe added a commit that referenced this pull request Aug 24, 2015
…rable-forward-respond-to

Fix Aws::PageableResponse to correctly answer `respond_to?` with methods different than #count.
@trevorrowe trevorrowe merged commit 1a53fcd into aws:master Aug 24, 2015
@trevorrowe
Copy link
Member

Thank you for the well formed pull-request!

@trevorrowe
Copy link
Member

Also, this should go out in tomorrows release.

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