From 8b114305351e5a2a7d6ae009487050ad7f57056f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 6 Dec 2021 18:18:31 -0800 Subject: [PATCH] Updated comments [skip ci] --- lib/pghero.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pghero.rb b/lib/pghero.rb index ee9a49e28..8c21e32b1 100644 --- a/lib/pghero.rb +++ b/lib/pghero.rb @@ -217,14 +217,14 @@ def connection_config(model) end # private - # Rails 6.1 deprecate `spec_name` and use `name` for configurations + # Rails 6.1 deprecates `spec_name` for `name` # https://github.com/rails/rails/pull/38536 def spec_name_key ActiveRecord::VERSION::STRING.to_f >= 6.1 ? :name : :spec_name end # private - # Rails 7.0 deprecate `include_replicas` and use `include_hidden` + # Rails 7.0 deprecates `include_replicas` for `include_hidden` def include_replicas_key ActiveRecord::VERSION::MAJOR >= 7 ? :include_hidden : :include_replicas end