Properly rescue ::ArgumentError in the date filter

This commit is contained in:
Akinori MUSHA
2015-07-24 13:35:06 +09:00
parent 1f70928f8a
commit a215b70de9
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ module Liquid
when String
Time.parse(obj)
end
rescue ArgumentError
rescue ::ArgumentError
nil
end
end