Skip to content

Commit

Permalink
Updated comments [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 7, 2021
1 parent 9b03508 commit 8b11430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pghero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b11430

Please sign in to comment.