WTF. Seriously. It works with 1.9 now though.
This commit is contained in:
parent
d183150fa9
commit
1590b69569
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue