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 warning in Ruby 2.7+ #206

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Fix warning in Ruby 2.7+ #206

merged 1 commit into from
Jan 6, 2021

Commits on Jan 6, 2021

  1. Fix warning in Ruby 2.7+

    This fixes the following warning when creating your own transformer like so:
    
    ```ruby
    class SomeTransformer
      def call(node:, **_)
        {
          node_allowlist: [node],
        }
      end
    end
    ```
    
    ```
    /usr/local/bundle/ruby/2.7.0/gems/sanitize-5.2.1/lib/sanitize.rb:207: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
    ```
    mscrivo committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    361cc05 View commit details
    Browse the repository at this point in the history