Created
December 1, 2017 19:54
-
-
Save joegaudet/2e12d1f72f153df924d10402acdd2e12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JSONAPI::RelationshipBuilder#define_relationship_methods | |
# model_class.ancestors.collect{|ancestor| ancestor.name}.include?('ActiveRecord::Base') | |
# replace with this | |
if model_class && model_class < ActiveRecord::Base |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment