heya
heya copied to clipboard
Wrong number of arguments given for CampaignMembership#to_process for Ruby 3.2.2
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
- Install Ruby 3.2.2
- Install Heya
- Open a shell and call
Heya::CampaignMembership.to_process(user: nil)