diff --git a/fgu_sync.rake b/fgu_sync.rake index c2981ac..19bb346 100644 --- a/fgu_sync.rake +++ b/fgu_sync.rake @@ -16,7 +16,7 @@ namespace :fgu_sync do end end def parse_date(d) - (d.present? ? (Date.parse(d) rescue Date.today) : nil) + (d.present? ? (Date.parse(d) rescue nil) : nil) end def camelize(str) str.split('_').map{|v| v.capitalize}.join(' ')