Fix bug.
This commit is contained in:
parent
ce36d284e6
commit
076e7cc688
|
@ -16,7 +16,7 @@ namespace :fgu_sync do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
def parse_date(d)
|
def parse_date(d)
|
||||||
(d.present? ? (Date.parse(d) rescue Date.today) : nil)
|
(d.present? ? (Date.parse(d) rescue nil) : nil)
|
||||||
end
|
end
|
||||||
def camelize(str)
|
def camelize(str)
|
||||||
str.split('_').map{|v| v.capitalize}.join(' ')
|
str.split('_').map{|v| v.capitalize}.join(' ')
|
||||||
|
|
Loading…
Reference in New Issue