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

Commit

Permalink
Added sensible default sizes for several DM::Types
Browse files Browse the repository at this point in the history
  • Loading branch information
SFEley committed Feb 25, 2009
1 parent 28e7a07 commit 13bbcc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dm-types/lib/dm-types/file_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module DataMapper
module Types
class FilePath < DataMapper::Type
primitive String
size 255

def self.load(value, property)
if value.nil?
Expand Down
1 change: 1 addition & 0 deletions dm-types/lib/dm-types/ip_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module DataMapper
module Types
class IPAddress < DataMapper::Type
primitive String
size 16

def self.load(value, property)
if value.nil?
Expand Down
1 change: 1 addition & 0 deletions dm-types/lib/dm-types/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module DataMapper
module Types
class URI < DataMapper::Type
primitive String
size 255

def self.load(value, property)
Addressable::URI.parse(value)
Expand Down

0 comments on commit 13bbcc8

Please sign in to comment.