resque_mail_queue icon indicating copy to clipboard operation
resque_mail_queue copied to clipboard

use define method in method_missing

Open drhenner opened this issue 14 years ago • 1 comments

You probably should not be going to method missing for methods you have already called before... instead use define_method in the method missing implementation. It will speed things up.

Take a look at this post. http://www.alfajango.com/blog/method_missing-a-rubyists-beautiful-mistress/

I might contribute if I have time. I just created a similar project at work.

Thanks for sharing your code. Dave

drhenner avatar Sep 07 '11 13:09 drhenner

Great suggestion and makes perfect sense.

scottwater avatar Sep 07 '11 13:09 scottwater