Commit 70e82adb by Cuong Tran

Merge pull request #193 from ekampp/develop

Coerce class to string for comparison
parents 08a37ab8 92190ef1
......@@ -399,7 +399,7 @@ module AnnotateModels
c.ancestors.respond_to?(:include?) and # to fix FactoryGirl bug, see https://github.com/ctran/annotate_models/pull/82
c.ancestors.include?(ActiveRecord::Base)
end.
detect { |c| ActiveSupport::Inflector.underscore(c) == model_path }
detect { |c| ActiveSupport::Inflector.underscore(c.to_s) == model_path }
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment