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

Fetch by id results in exception not nil #8

Open
vanhecke opened this issue Dec 27, 2019 · 0 comments
Open

Fetch by id results in exception not nil #8

vanhecke opened this issue Dec 27, 2019 · 0 comments

Comments

@vanhecke
Copy link

The readme describes the following behaviour:

# Trying to find a non existent party
Party[2]
# => nil

But doing this operation will actually result in a Ohm::RecordNotFound exception.
The following is not working:

if party = Party[id]
	#work with object
else
	#handle not found
end
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

No branches or pull requests

1 participant