How to override plugin method?

Hello,

I have made a change to a method in the jrails plugin. Now it would be a lot easier if I could make this change in a seperate file in my lib directory being able to deploy the change to my production server using capistrano. But I cannot figure out how to override this method.

Any howto's on this?

Greetings, Gitte Wange