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
Ruby 2.7 support #167
Comments
I've seen warnings in that same place but I wasn't planning to use a ruby 2.7 specific syntax to fix it. I think it can be fixed in a backwards compatible way. Other than that warning, |
Yeah, it works fine. I agree with backward-compatible (probably with ruby2_keywords gem: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#a-compatible-delegation) |
Yeah, I think I would prefer a more verbose and less DRY alternative like:
If that would work. |
I see the branch https://github.com/activeadmin/arbre/tree/ruby27_warnings
to suppress ruby 2.7 warnings,
but isn't it worth adding support for ruby 2.7 (and following 3.0?)
By adding a new syntax
helpers.send(...)
instead ofhelpers.send(name, *args, &block)
here: https://github.com/activeadmin/arbre/blob/master/lib/arbre/element.rb#L181Is a branch for 2.7 a good idea? Because it won't be compatible with 2.6...
The text was updated successfully, but these errors were encountered: