ese-unibe-ch / ese2012-team4

5 stars 1 forks source link

adjust data type of id's (int instead of string) #90

Closed misch closed 11 years ago

misch commented 11 years ago

"Method by_id takes a string. Ouch!

def self.by_id id @@comments[id.to_i] end

Then in the test you use Comment.by_id("#{comment.id}")instead of Comment.by_id( comment.id ). Ugly."