adzap / validates_timeliness

Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
MIT License
1.59k stars 227 forks source link

Handle when the passed value is a Numeric value #229

Open eng-Abdurhman opened 1 year ago

eng-Abdurhman commented 1 year ago

When the passed value is a Numeric value, then we get an exception 👇 => NoMethodError: undefined method "to_date" for 444:Integer

So, this PR is to handle that case!


@adzap I hope you like this tiny PR and merge it.

Regards 🎉