Skip to content

Wrong number of arguments given for CampaignMembership#to_process for Ruby 3.2.2 #213

@rathboma

Description

@rathboma

Hi folks,

I just attempted an upgrade to Ruby to 3.2.2, and started getting the following error when starting the Heya scheduler:

app/models/heya/campaign_membership.rb:52 wrong number of arguments (given 1, expected 0)

This is the to_process scope, it is called from this line: https://github.com/honeybadger-io/heya/blob/v0.8.0/lib/heya/campaigns/queries.rb#L9

I don't know enough about Ruby 3.2 to understand why this is occuring, but hoping someone here knows?

Replication

  1. Install Ruby 3.2.2
  2. Install Heya
  3. Open a shell and call Heya::CampaignMembership.to_process(user: nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions