Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

! find_all_by_id in Book

  • Loading branch information...
commit 4932fc9c779d702a8e2483fa725c607219404d69 1 parent 1f25eab
@floere authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 generators/prototypes/shared/client/book.rb
View
4 generators/prototypes/shared/client/book.rb
@@ -19,9 +19,9 @@ class Book
@@books_mapping[row.shift.to_i] = row
end
- # Find_by_id uses a lookup table.
+ # Find_all_by_id uses a lookup table.
#
- def self.find_by_id ids, _ = {}
+ def self.find_all_by_id ids, _ = {}
ids.map { |id| new(id, *@@books_mapping[id]) }
end
Please sign in to comment.
Something went wrong with that request. Please try again.