This is an addition to this PR: https://github.com/ctran/annotate_models/pull/692 I've seen it's been stale for a while and it's rather simple fix. I noticed my ActiveAdmin resources are not being annotated. I know ActiveAdmin uses plural model names, but, as far as I remember, they used to use singular model names in the past. We can see some "evidence" of that here: https://activeadmin.info/2-resource-customization.html#customizing-parent-menu-items Probably in other places as well. In order to keep the gem working as expected for singular ActiveAdmin resources, I suggest we annotate both singular and plural model names. I just tested this out in a project of mine where I renamed one file to be in singular form and left the other files in plural form. It worked like a charm. :)
Name |
Last commit
|
Last update |
---|---|---|
.github | Loading commit data... | |
bin | Loading commit data... | |
lib | Loading commit data... | |
spec | Loading commit data... | |
.dockerignore | Loading commit data... | |
.document | Loading commit data... | |
.gitignore | Loading commit data... | |
.overcommit.yml | Loading commit data... | |
.rbenv-gemsets | Loading commit data... | |
.rspec | Loading commit data... | |
.rubocop.yml | Loading commit data... | |
.rubocop_todo.yml | Loading commit data... | |
.travis.yml | Loading commit data... | |
.yardopts | Loading commit data... | |
AUTHORS.md | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
Gemfile | Loading commit data... | |
Guardfile | Loading commit data... | |
LICENSE.txt | Loading commit data... | |
README.md | Loading commit data... | |
RELEASE.md | Loading commit data... | |
Rakefile | Loading commit data... | |
annotate.gemspec | Loading commit data... | |
potato.md | Loading commit data... |