ruby - Rails: Overriding const_missing within a module -


I have a module defined within my rail applications:

  Whatever the module Module class WhateverClass ... End of End  

This file (whatever) / app / model / whatever_module

const_missing Override being done by rail and in spite of this I did some work, which included initial, I wish I could make it better.

My goal is to retrieve any module: FU (FU is going to be undefined), custom const_missing method.

Any help would be greatly appreciated. thank you in advanced!

In Railway 2.2.2, I start working fine for me

  module whateverModule def self.const_missing (c) # missing missing end handle  handle  

Comments