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

Funky::Video.where(id: id) should never error. #45

Merged
merged 2 commits into from
Jun 17, 2016

Conversation

philipqnguyen
Copy link
Contributor

Before, if a single video id was passed into Funky::Video.where,
and that video could not be accessed, it would raise ContentNotFound.
That goes against the readme and is not consistent with when we pass
multiple ids to the where clause. The where clause should simply
ignore badd video ids. If it's a single video id, it should return
and empty array.

Before, if a single video id was passed into Funky::Video.where,
and that video could not be accessed, it would raise ContentNotFound.
That goes against the readme and is not consistent with when we pass
multiple ids to the where clause. The where clause should simply
ignore badd video ids. If it's a single video id, it should return
and empty array.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 24b72e1 on dont-error-for-where into d06cf9a on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling bf097fc on dont-error-for-where into d06cf9a on master.

@claudiofullscreen claudiofullscreen merged commit e421f8f into master Jun 17, 2016
@claudiofullscreen claudiofullscreen deleted the dont-error-for-where branch June 17, 2016 23:58
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.

None yet

3 participants