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

Unitialized Constant error in `7.0.0.beta2` and Rails `7.2` #244

Open Maimer opened 3 weeks ago

Maimer commented 3 weeks ago

Receiving the error:

/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/validates_timeliness-7.0.0.beta2/lib/validates_timeliness/orm/active_model.rb:46:in `block in generated_timeliness_methods': uninitialized constant ValidatesTimeliness::ORM::ActiveModel::ClassMethods::Mutex_m (NameError)

            extend Mutex_m
                   ^^^^^^^

Additionally, mutex_m is being removed from the default gems in Ruby 3.4 and it should be added to the gemspec and required explicitly in this gem.