Skip to content

Commit

Permalink
change_deprecated_method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Hernandez committed Oct 24, 2024
1 parent fdff26b commit df7980e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validates_timeliness/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df7980e

Please sign in to comment.