NoMethodError (undefined method `current' for ShopifyAPI::RecurringApplicationCharge:Class

Topic summary

A developer encountered a NoMethodError after upgrading their Shopify app from Rails 6 to Rails 7. The error indicates that the current method is undefined for the ShopifyAPI::RecurringApplicationCharge class.

Environment details:

  • Rails version: 7.0.4.2
  • Ruby version: 3.1.2
  • shopify_app gem: 21.4.0
  • shopify_api gem: 12.4.0

The issue appears to be related to API compatibility following the Rails upgrade, potentially due to breaking changes in the Shopify gem versions or deprecated methods. No resolution has been provided yet.

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

I updated my Shopify app rails 6 to 7. But when I call Shopify app so I get the above error.

Here is my version list.

shopify_api version: 12.4.0
shopify_app version: 21.4.0
Ruby version: 3.1.2
Rails 7.0.4.2