simply_stored icon indicating copy to clipboard operation
simply_stored copied to clipboard

Fix problem with find(:first) not accepting options

Open showaltb opened this issue 13 years ago • 0 comments

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.

showaltb avatar Nov 22 '11 22:11 showaltb