Refactor embeddable? method

This commit is contained in:
Santiago Pastorino 2013-05-15 17:07:04 -07:00
parent bbd3c8b157
commit 36feb5d44f

View File

@ -95,11 +95,7 @@ module ActiveModel
end end
def embeddable? def embeddable?
if polymorphic? && object.nil? super || !polymorphic?
false
else
true
end
end end
def serializables def serializables