Skip to content

Commit 4760e07

Browse files
authored
Merge pull request rails#50590 from sato11/cache-can-drop-ruby-2-7-compatibility
Remove workaround for Ruby 2.7 at ActiveSupport::Cache#lookup_store
2 parents 1e7fd06 + de77bca commit 4760e07

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)