Skip to content

Commit

Permalink
Updated HugeInteger property used in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Solnica committed Jul 8, 2010
1 parent 0780ac1 commit 97df931
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module DataMapper
module Types
class Property
class HugeInteger < DataMapper::Property::String
def self.load(value, property)
def load(value)
value.to_i unless value.nil?
end

def self.dump(value, property)
def dump(value)
value.to_s unless value.nil?
end

def self.typecast(value, property)
load(value, property)
def typecast(value)
load(value)
end
end
end
Expand Down

0 comments on commit 97df931

Please sign in to comment.