We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08a37ab + 92190ef commit 70e82adCopy full SHA for 70e82ad
lib/annotate/annotate_models.rb
@@ -399,7 +399,7 @@ def get_loaded_model(model_path)
399
c.ancestors.respond_to?(:include?) and # to fix FactoryGirl bug, see https://github.com/ctran/annotate_models/pull/82
400
c.ancestors.include?(ActiveRecord::Base)
401
end.
402
- detect { |c| ActiveSupport::Inflector.underscore(c) == model_path }
+ detect { |c| ActiveSupport::Inflector.underscore(c.to_s) == model_path }
403
end
404
405
0 commit comments