Topic: need help for my first plugin
I just wrote my first plugin for ActiveResource. It works great but I need to put:
in all my models that use this plugin.
To avoid that, i did put:
ActiveResource::Base.send :include, MyPlugin
but it doesn't work (I get a NoMethodError: undefined method my_plugin_function).
Any idea what's the way to do this?
thanx in advance