Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Removed duplicated dump method from Property
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Jul 12, 2010
1 parent d2a0661 commit 0ea0c86
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/dm-core/property.rb
Expand Up @@ -741,24 +741,6 @@ def typecast(value)
end
end

# Returns given value unchanged for core types and
# uses +dump+ method of the property type for custom types.
#
# @param [Object] loaded_value
# the value to be converted into a storeable (ie., primitive) value
#
# @return [Object]
# the primitive value to be stored in the repository for +val+
#
# @api semipublic
def dump(value)
if custom?
type.dump(loaded_value, self)
else
loaded_value
end
end

# Test the value to see if it is a valid value for this Property
#
# @param [Object] loaded_value
Expand Down

0 comments on commit 0ea0c86

Please sign in to comment.