From df7980e6367e138d3673d54f9f3394cb88c9ffa9 Mon Sep 17 00:00:00 2001 From: Gerardo Hernandez Date: Thu, 24 Oct 2024 11:09:35 -0600 Subject: [PATCH] change_deprecated_method --- lib/validates_timeliness/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validates_timeliness/railtie.rb b/lib/validates_timeliness/railtie.rb index da111ab..68cbe41 100644 --- a/lib/validates_timeliness/railtie.rb +++ b/lib/validates_timeliness/railtie.rb @@ -2,7 +2,7 @@ module ValidatesTimeliness class Railtie < Rails::Railtie initializer "validates_timeliness.initialize_active_record", :after => 'active_record.initialize_timezone' do ActiveSupport.on_load(:active_record) do - ValidatesTimeliness.default_timezone = ActiveRecord.default_timezone + ValidatesTimeliness.default_timezone = ActiveRecord::Base.default_timezone ValidatesTimeliness.extend_orms << :active_record ValidatesTimeliness.load_orms end