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

fix: converts to a keyword argument #206

Closed johnwmcarneiro closed 2 years ago

johnwmcarneiro commented 2 years ago

Use double splat to convert explicitly the hash to keyword arguments.

This is necessary to keep the same behavior in Ruby 3.

https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

adzap commented 2 years ago

Thank you, but I took @schinery 's fix. I will credit you both.