Forum: Ruby on Rails override method_missing via a module

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E8bd98e7f05259922730c88936a8f5a9?d=identicon&s=25 Pete M (Guest)
on 2006-12-27 21:56
How would one use the module below to catch the missing class method in
the 'MyClass' class? Thanks in advance!

module MyMod

  def method_missing(meth, *args)
    puts "I caught the missing class method"


class MyClass
include MyMod

  def initialize
This topic is locked and can not be replied to.