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

Fix ArgumentError: wrong number of arguments for Cell:: Caching #507

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

taketo1113
Copy link

It fxied argument error Cell::Caching with conditionals helper method.
And added test case with conditionals helper method for Cell::Caching.

fixed #506

@apotonick
Copy link
Member

Thanks my friend! However, now Ruby 2.5 is breaking - I remember fixing that a while ago with the array trick.
Your intention of this PR is to allow a cache decider without any arguments, right? def cache_enabled?; ?

@taketo1113
Copy link
Author

@apotonick

However, now Ruby 2.5 is breaking

Sorry. I fixed it.

Your intention of this PR is to allow a cache decider without any arguments, right? def cache_enabled?; ?

yes!

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

Successfully merging this pull request may close these issues.

Ruby 3.0 ArgumentError: wrong number of arguments error with Caching
2 participants