uninitialized constant ShopifyAPI::CustomerGroup::Customers error

梦想的初衷 提交于 2020-01-06 06:58:36

问题


No doubt I am doing something wrong here, but I am following instructions on a new commit from here.

I am getting the following error

uninitialized constant ShopifyAPI::CustomerGroup::Customers
00:33:56 web.1    | /Users/matt/.rvm/gems/ruby-1.9.3-p0/gems/shopify_api-3.0.3/lib/shopify_api/resources/customer_group.rb:4:in `customers''

When running this code

 group = ShopifyAPI::CustomerGroup.find(5614012)
            customers = group.customers

Here is the gem file mentioned above


回答1:


Version 3.0.3 should solve the problem, I'll have to look into why it isn't.

In the meantime, the following will do what you want:

group = ShopfiyAPI::CustomerGroup.find(123)
customers = group.get(:customers)


来源:https://stackoverflow.com/questions/13408740/uninitialized-constant-shopifyapicustomergroupcustomers-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!