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

read only attributes #72

Closed msalvadores closed 7 years ago

msalvadores commented 11 years ago

For things like passwords. @palexander how would be set this attribute ?

palexander commented 11 years ago

:read_only => true

msalvadores commented 11 years ago

Sorry I mean .. that if it is read_only how do you assign a value to that attribute ? only on creation ?

palexander commented 11 years ago

:smile:

Ok, so we'll need to basically assign it in the attributes. :read_only actually should just mean that the method attribute= isn't created.

palexander commented 11 years ago

For example: self.attributes[:passwordHash] = password