Permalink
Browse files

! find_all_by_id in Book

  • Loading branch information...
1 parent 1f25eab commit 4932fc9c779d702a8e2483fa725c607219404d69 @floere committed Nov 26, 2012
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

0 comments on commit 4932fc9

Please sign in to comment.