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

Resolve uninitialized constant ActiveModel::Serializers::Xml #19

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

Conversation

colstrom
Copy link
Contributor

This fixes a NameError that prevents related from being loaded.

`activemodel-serializers-xml` is required for this gem to load, but is not currently included in `activemodel`. It was extracted for ActiveModel v5.x.

Either adding it to the dependencies, or applying a `~> 4.2` constraint to the `activemodel` dependency resolves this. I've opted for the former in this patch.
Adding it to the `gemspec` is half the battle, this is the other half. It needs to be required separately, as it has been extracted from ActiveModel.
@colstrom colstrom changed the title Resolve uninitialized constant ActiveModel::Serializers::Xml Resolve uninitialized constant ActiveModel::Serializers::Xml Aug 22, 2016
@niho
Copy link
Owner

niho commented Sep 1, 2016

@colstrom If you fix the conflict I will merge this pull request ASAP.

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.

2 participants