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
def embeddable?
if polymorphic? && object.nil?
false
else
true
end
super || !polymorphic?
end
def serializables