detecting acts_as_x?

I'm writing an acts_as_x type plugin/gem and I need to know how to
detect which other acts_as plugins are installed so I can avoid name
conflicts. What's a simple way to do this?

Well there's not much in the way of conventions or ways to list other
installed plugins. You may find the easiest way is to namespace your
stuff (so install of having MyAwesomeModule make it
YourOrganisation::MyAwesomeModule), but as far as you and some other
plugin both adding an acts_as_foo method you're probably out of luck.
You can find out if the method you are about to add is already there,
but depending on plugin load order you might load before the
conflicting plugin.


Frederick Cheung wrote: