fixed comment/whitespace
This commit is contained in:
parent
4dbf694e51
commit
270537e95f
1 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,6 @@ module CouchRest
|
||||||
|
|
||||||
# Store a casted value in the current instance of an attribute defined
|
# Store a casted value in the current instance of an attribute defined
|
||||||
# with a property.
|
# with a property.
|
||||||
# TODO: mixin dirty functionality into value (?)
|
|
||||||
def write_attribute(property, value)
|
def write_attribute(property, value)
|
||||||
prop = find_property!(property)
|
prop = find_property!(property)
|
||||||
self[prop.to_s] = prop.is_a?(String) ? value : prop.cast(self, value)
|
self[prop.to_s] = prop.is_a?(String) ? value : prop.cast(self, value)
|
||||||
|
|
Loading…
Add table
Reference in a new issue