Closed abrisse closed 11 years ago
In base.rb you have on line 82 you have the promise statement :
def unserialize(value, options = {})
if value.respond_to?(:blank?) && value.blank?
nil
else
# Spira resources are instantiated as "promised"
# to avoid instantiation loops in case of resource-to-resource relations.
promise { instantiate_record(value) }
end
end
I've added a failing spec for this bug, will take care of it as time permits. Thanks!
Fixed. This breaks backward compatibility a tiny bit: "has-many" relations now deal with Arrays, not Sets.
That was quick. Thanks a lot Slava!
Hi!
When 2 resources reference themselves with a has_many property, the following error is raised :
Here is the code to reproduce it