When the program bites the hands that writes it

time to read 1 min | 92 words

I recently added a check for ActiveRecord that would throw an exception if you defined a class without a primary key. I just got that exception myself. In perfectly correct code! This is what happens when you’re trying to fix things J

Anyway, the issue was in another place altogether. But it was good to get an exception saying that there was an error. Otherwise I would’ve had a very hard time figuring out what was going on.