lib/spiderfw/model/model.rb in spiderfw-0.5.7 vs lib/spiderfw/model/model.rb in spiderfw-0.5.9
- old
+ new
@@ -32,10 +32,11 @@
# TODO: remove?
def self.ruby_type(klass) #:nodoc:
map_types = {
Spider::DataTypes::Text => String,
Spider::DataTypes::Bool => FalseClass,
- Spider::DataTypes::Binary => String
+ Spider::DataTypes::Binary => String,
+ Spider::DataTypes::FilePath => String
}
return map_types[klass] if map_types[klass]
return klass
end
\ No newline at end of file