Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle passing an array of ids to find
This improves the method signature to be closer to that of `ActiveRecord::Base#find`. The return value of find is always an array when an array is passed as an argument. e.g.: User.find(1) # => #<User id=1> User.find([1]) # => [#<User id=1>]
- Loading branch information
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters