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

Add respond_to_missing? to ChargeBee::Model #79

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sobrinho
Copy link

@sobrinho sobrinho commented Jul 30, 2024

That will fix an issue when calling flatten to an array of ChargeBee::Model:

resources.map(&:class).tally
#=> {ChargeBee::Transaction=>890,
 ChargeBee::Invoice=>712,
 ChargeBee::Customer=>17088,
 ChargeBee::Subscription=>14774,
 ChargeBee::PaymentSource=>534,
 ChargeBee::Card=>6942,
 ChargeBee::CreditNote=>178}

resources.flatten
#=> There's no method called to_ary [] here -- please try again.

Copy link

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