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

`@timeliness_methods_generated` is not reset properly #133

Closed codez closed 8 years ago

codez commented 8 years ago

In lib/validates_timeliness/orm/active_record.rb#L56, @timeliness_methods_generated should be set to false instead of true, otherwise the methods will not be regenerated on a subsequent define_attribute_methods call.

adzap commented 8 years ago

Yes of course. Thought I had already checked that. Oh well, thanks for the report. See 4.0.2.