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 for calling #flatten on an array of links #37

Merged
merged 1 commit into from
Jun 23, 2013

Conversation

bkeepers
Copy link
Contributor

Calling #flatten on an array of links will attempt to call #to_ary on resource. This fixes it by explicitly defining Link#to_ary to return nil. Here are related issues on other projects talking about this issue:

rspec/rspec-mocks#31
rubygems/bundler#1274

@oriolgual
Copy link
Member

Nice catch, didn't know about this.

oriolgual added a commit that referenced this pull request Jun 23, 2013
Fix for calling #flatten on an array of links
@oriolgual oriolgual merged commit 4ac113e 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