Fix problem with find(:first) not accepting options #21

wants to merge 1 commit into

1 participant


Model.find(:first, options) does not pass the options along to the view. This breaks Model.last, because the {:order => :desc} is not passed along, so Model.first and Model.last both return the same row. Also Model.last(options) does not pass the options along.

This branch fixes those and updates test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment