Skip to content

Commit de77bca

Browse files
committed
Remove workaround for Ruby 2.7 at ActiveSupport::Cache#lookup_store
Since the minimum required version is now 3.1, this can be got rid of like the comment commands.
1 parent a2ed343 commit de77bca

File tree

1 file changed

+1
-7
lines changed
  • activesupport/lib/active_support

1 file changed

+1
-7
lines changed

activesupport/lib/active_support/cache.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,7 @@ def lookup_store(store = nil, *parameters)
8686
case store
8787
when Symbol
8888
options = parameters.extract_options!
89-
# clean this up once Ruby 2.7 support is dropped
90-
# see https://github.com/rails/rails/pull/41522#discussion_r581186602
91-
if options.empty?
92-
retrieve_store_class(store).new(*parameters)
93-
else
94-
retrieve_store_class(store).new(*parameters, **options)
95-
end
89+
retrieve_store_class(store).new(*parameters, **options)
9690
when Array
9791
lookup_store(*store)
9892
when nil

0 commit comments

Comments
 (0)