lib/dm-serializer/to_xml.rb in dm-serializer-1.1.0 vs lib/dm-serializer/to_xml.rb in dm-serializer-1.2.0.rc1
- old
+ new
@@ -114,15 +114,13 @@
doc
end
end
- if Serializer.dm_validations_loaded?
-
+ if const_defined?(:Validations)
module Validations
class ValidationErrors
include DataMapper::Serializer::ValidationErrors::ToXml
end
end
-
end
end