WTF. Seriously. It works with 1.9 now though.

This commit is contained in:
Sarah Mei 2011-03-01 21:43:49 -08:00
parent d183150fa9
commit 1590b69569

View file

@ -1,5 +1,9 @@
class Object class Object
def id def id
raise "You have called id on a non-ActiveRecord object." if self.class.ancestors.include?(ActiveRecord::Base)
super
else
raise "You are calling id on a non-ActiveRecord object. STOP IT."
end
end end
end end