Skip to content

Fetch by id results in exception not nil #8

@vanhecke

Description

@vanhecke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions