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

fix method 'is_json_api' with active_model_serialier v 0.10.0 #651

Merged
merged 2 commits into from
Jun 2, 2016

Conversation

nerzh
Copy link
Contributor

@nerzh nerzh commented Jun 2, 2016

No description provided.

@booleanbetrayal
Copy link
Collaborator

thanks for helping iron out this AMS stuff @woodcrust !

@@ -37,7 +37,8 @@ def is_json_api
return false unless defined?(ActiveModel::Serializer)
return ActiveModel::Serializer.setup do |config|
config.adapter == :json_api
end
end if ActiveModel::Serializer.respond_to?(:setup)
return ActiveModelSerializers.config.adapter == :json_api
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize that #648 was targeted at AMS 0.9.x. It's been a while since I used it and I didn't see any mention of version in the pr.

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.

3 participants