Skip to content

Commit 51f5c1b

Browse files
committed
Create a note about strange ruby behaviour
1 parent 9b72778 commit 51f5c1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/shallow_attributes/type/date.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def coerce(value, options = {})
2727
when ::DateTime, ::Time then value.to_date
2828
when ::Date then value
2929
else
30+
# TODO: ::Date.parse(Class.new.to_s) valid call and will create strange Data object
3031
::Date.parse(value.to_s)
3132
end
3233
rescue

0 commit comments

Comments
 (0)