ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Assigning attribute in schemaless model puts nil in arrays #83

Closed palexander closed 11 years ago

palexander commented 11 years ago

Sometimes assigning a new attribute to a schemaless model will cause nils to appear in the resulting array. For example:

cls = LinkedData::Models::Class.new
cls.my_new_attr = "blah"
puts cls.my_new_attr
=> [ "blah", nil ]
msalvadores commented 11 years ago

I cannot reproduce it.

Also in Linked Data:

https://github.com/ncbo/ontologies_linked_data/blob/master/test/models/test_class.rb#L196

msalvadores commented 11 years ago

To reopen if we see it again.