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

Rails 7 Deprecation Warnings #217

Closed marclennox closed 1 year ago

marclennox commented 2 years ago

Rails 7 has deprecated ActiveRecord::Base.default_timezone in favor of ActiveRecord.default_timezone. The railtie for this gem is referencing the deprecated method and generates a warning. Happy to push a merge request if that will help.

DEPRECATION WARNING: ActiveRecord::Base.default_timezone is deprecated and will be removed in Rails 7.1.
Use `ActiveRecord.default_timezone` instead.
foucist commented 2 years ago

Fixed in #213 .. for now I'm using

 gem 'validates_timeliness', '~> 6.0.0.beta2', github: "mitsuru/validates_timeliness", branch: "rails7"
leoarnold commented 2 years ago

@foucist You know your build will break if mitsuru chooses to delete that branch, right?

@adzap Ping?

pcothenet commented 2 years ago

@adzap we'd love to silence those pesky warning. Thanks!

h0jeZvgoxFepBQ2C commented 1 year ago

When will the new version be released? Still the beta out there

braintrustalex commented 9 months ago

+1

zeptoon commented 8 months ago

thanks for costing me tons of time for nothing... #*#$!&#