lib/dm-serializer/to_csv.rb in dm-serializer-1.1.0 vs lib/dm-serializer/to_csv.rb in dm-serializer-1.2.0.rc1
- old
+ new
@@ -2,11 +2,10 @@
if RUBY_VERSION >= '1.9.0'
require 'csv'
else
begin
- gem 'fastercsv', '~>1.5.0'
require 'fastercsv'
CSV = FasterCSV
rescue LoadError
# do nothing
end
@@ -60,16 +59,13 @@
end
result
end
end
- if Serializer.dm_validations_loaded?
-
+ if const_defined?(:Validations)
module Validations
class ValidationErrors
include DataMapper::Serializer::ValidationErrors::ToCsv
end
end
-
end
-
end