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

Goo models missing list of fields in Model.unique #81

Closed palexander closed 11 years ago

palexander commented 11 years ago
User.unique
=> {:fields=>[], :generator=>:concat_and_encode, :policy=>:unique}
Ontology.unique
=> {:fields=>[], :generator=>:concat_and_encode, :policy=>:unique}
Group.unique
=> {:fields=>[], :generator=>:concat_and_encode, :policy=>:unique}
msalvadores commented 11 years ago

unique here is some legacy code that was more of a setter than a getter. Those example would be wiping out the internal information for the unique value.

Since unique as a single dsl operation is not use any more I have change it so that it just returns the unique naming policy and fields.