Skip to content

Commit

Permalink
Merge pull request #193 from ekampp/develop
Browse files Browse the repository at this point in the history
Coerce class to string for comparison
  • Loading branch information
ctran committed Jun 14, 2014
2 parents 08a37ab + 92190ef commit 70e82ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/annotate/annotate_models.rb
Expand Up @@ -399,7 +399,7 @@ def get_loaded_model(model_path)
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

Expand Down

0 comments on commit 70e82ad

Please sign in to comment.