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: Splat args for value method to support Rails 5.0 and 5.2 difference in definition #172

Closed AquisTech closed 6 years ago

AquisTech commented 6 years ago

@adzap The changes of splat operator worked great. Rails 5.2 that I am using is anyway not expecting any args so there was no issue. But Rails 5 needs args so I think the args needs to be passed to super (parent method call) I have done the changes please merge and confirm.

adzap commented 6 years ago

This should not be necessary. The specs are passing. The super method works by implicitly passing up the args passed to the current method.