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

Commit

Permalink
[dm-types] Make sure Csv, Json and Yaml types are based on the Text type
Browse files Browse the repository at this point in the history
[#591 state:resolved]
  • Loading branch information
dkubb committed Oct 6, 2009
1 parent 26e11ca commit 3177dad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion dm-types/lib/dm-types/csv.rb
Expand Up @@ -9,7 +9,6 @@ module DataMapper
module Types
class Csv < DataMapper::Type
primitive Text
lazy true

def self.load(value, property)
case value
Expand Down
4 changes: 1 addition & 3 deletions dm-types/lib/dm-types/json.rb
Expand Up @@ -3,9 +3,7 @@
module DataMapper
module Types
class Json < DataMapper::Type
primitive String
length 65535
lazy true
primitive Text

def self.load(value, property)
if value.nil?
Expand Down
4 changes: 1 addition & 3 deletions dm-types/lib/dm-types/yaml.rb
Expand Up @@ -3,9 +3,7 @@
module DataMapper
module Types
class Yaml < DataMapper::Type
primitive String
length 65535
lazy true
primitive Text

def self.load(value, property)
if value.nil?
Expand Down

0 comments on commit 3177dad

Please sign in to comment.