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

Allow passing an empty hash to :after transition methods #833

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 11, 2023

  1. Allow passing an empty hash to :after transition methods

    Since Ruby 2.7, a double splat with an empty hash passes no arguments.
    So if an argument is an empty hash we should avoid it.
    Ref: https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/#other-minor-changes-empty-hash
    
    Fix aasm#829.
    y-yagi committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    0632dc3 View commit details
    Browse the repository at this point in the history