heya icon indicating copy to clipboard operation
heya copied to clipboard

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

Open rathboma opened this issue 1 year ago • 2 comments

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)

rathboma avatar Sep 28 '23 14:09 rathboma