diff --git a/lib/tasks/check_upgrade.rake b/lib/tasks/check_upgrade.rake index 869f04e2..41cb8e0f 100644 --- a/lib/tasks/check_upgrade.rake +++ b/lib/tasks/check_upgrade.rake @@ -9,7 +9,7 @@ namespace :jsonapi do task :check_upgrade => :environment do Rails.application.eager_load! - resource_klasses = ObjectSpace.each_object(Class).select { |klass| klass.include?(JSONAPI::ResourceCommon)} + resource_klasses = ObjectSpace.each_object(Class).select { |klass| klass.included_modules.include?(JSONAPI::ResourceCommon)} puts "Checking #{resource_klasses.count} resources"