Skip to content

Rails 6 inflection error on ActiveResource::Formats::XmlFormat #683

@EmmaB

Description

@EmmaB

When I make a call such as ShopifyAPI::Collect.create(collect) or ShopifyAPI::CustomCollection.find(collection.id).update_attributes(published: nil) and get an error response, I get the following:

NameError (uninitialized constant ActiveResource::Formats::XMLFormat)
Did you mean?  ActiveResource::Formats::XmlFormat

This is because my inflections.rb initializer contains:

ActiveSupport::Inflector.inflections do |inflect|
  inflect.acronym "XML"
  ...
end

The call to ActiveResource should probably insulate itself from local inflection overrides, shouldn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalepre-v10Issue opened prior to release of v10 of library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions