Skip to content

Commit

Permalink
Remove workaround for Ruby 2.7 at ActiveSupport::Cache#lookup_store
Browse files Browse the repository at this point in the history
Since the minimum required version is now 3.1,
this can be got rid of like the comment commands.
  • Loading branch information
sato11 committed Jan 5, 2024
1 parent a2ed343 commit de77bca
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions activesupport/lib/active_support/cache.rb
Expand Up @@ -86,13 +86,7 @@ def lookup_store(store = nil, *parameters)
case store
when Symbol
options = parameters.extract_options!
# clean this up once Ruby 2.7 support is dropped
# see https://github.com/rails/rails/pull/41522#discussion_r581186602
if options.empty?
retrieve_store_class(store).new(*parameters)
else
retrieve_store_class(store).new(*parameters, **options)
end
retrieve_store_class(store).new(*parameters, **options)
when Array
lookup_store(*store)
when nil
Expand Down

0 comments on commit de77bca

Please sign in to comment.