Skip to content
Browse files

Fix fetcher for DateTime data type

  • Loading branch information...
1 parent bd19b07 commit 7b4cd2f8212fbfe4a403c7e67c0b9ce551d25634 @ivannovosad committed Sep 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/seed_dumper/fetcher.rb
View
2 lib/seed_dumper/fetcher.rb
@@ -14,7 +14,7 @@ def self.fetch_data(klass, options={})
attr_s = [];
record.attributes.delete_if { |k, v| ignore.include?(k) }.each do |key, value|
- value = value.class == Time ? "\"#{value}\"" : value.inspect
+ value = value.class == Time || DateTime ? "\"#{value}\"" : value.inspect
value = nil if value.is_a?(String) && value == "\"\""
value = nil if value == 'nil' || value == "nil"

0 comments on commit 7b4cd2f

Please sign in to comment.
Something went wrong with that request. Please try again.