Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with Ruby 3 / Rails 6.1 #9

Open
futuretap opened this issue Dec 15, 2022 · 1 comment
Open

Incompatibility with Ruby 3 / Rails 6.1 #9

futuretap opened this issue Dec 15, 2022 · 1 comment

Comments

@futuretap
Copy link

When calling Rails.cache.exist?(key) level2 throws an exception:

#<ArgumentError: wrong number of arguments (given 2, expected 1)>

/bundler/gems/level2/lib/active_support/cache/level2.rb:97:in `record_event'`,
/bundler/gems/level2/lib/active_support/cache/level2.rb:73:in `block in read_entry_from',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `each',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `detect',
/bundler/gems/level2/lib/active_support/cache/level2.rb:85:in `read_entry_from',
/bundler/gems/level2/lib/active_support/cache/level2.rb:40:in `read_entry',
/gems/activesupport-6.1.7/lib/active_support/cache.rb:510:in `block in exist?'",
/gems/activesupport-6.1.7/lib/active_support/cache.rb:726:in `block in instrument'",
/gems/activesupport-6.1.7/lib/active_support/notifications.rb:205:in `instrument'",
/gems/activesupport-6.1.7/lib/active_support/cache.rb:726:in `instrument'",
/gems/activesupport-6.1.7/lib/active_support/cache.rb:509:in `exist?'",
@futuretap
Copy link
Author

Here's a fix, feel free to pull:
futuretap@46cacb4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant