Callback sto InstanceMethods in a plugin

Hello there,

I’m currently building a plugin, for which I need a before_save
callback. The method I want to call is in module InstanceMethods, but
when I add a before_save foo, foo, as defined as an InstanceMethod,
never gets called.
This is the first plugin I’m building, after only two weeks of fiddling
with Ruby and Rails, so if anyone is kind enough to help me out… :slight_smile:

Never mind, found it already.

Nothing to see here, move along!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs