Fix bug.
This commit is contained in:
parent
ce36d284e6
commit
076e7cc688
|
@ -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(' ')
|
||||
|
|
Loading…
Reference in New Issue