Skip to content

Commit

Permalink
! find_all_by_id in Book
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Nov 26, 2012
1 parent 1f25eab commit 4932fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/prototypes/shared/client/book.rb
Expand Up @@ -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

Expand Down

0 comments on commit 4932fc9

Please sign in to comment.