Skip to content

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