Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created December 1, 2017 19:54
Show Gist options
  • Save joegaudet/2e12d1f72f153df924d10402acdd2e12 to your computer and use it in GitHub Desktop.
Save joegaudet/2e12d1f72f153df924d10402acdd2e12 to your computer and use it in GitHub Desktop.
# 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