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 kwargs #63

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

Conversation

Vagab
Copy link

@Vagab Vagab commented Jun 21, 2023

Use case

Tried this today:

class SomeController < ApplicationController
  def some_action
    SomeCommand.call do
      on(:something) do
        some_method_with_kwargs(yeet:)
      end
    end
  end

  private

  def some_method_with_kwargs(yeet:); end
end

Which doesn't work. This uber small pr solves that. Also doesn't seem to break anything

@andypike let me know if I should add tests for this or smth

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.

1 participant