Forum: Ruby on Rails Call ActionController's verify() in 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.
Joshua M. (Guest)
on 2007-03-30 01:45
Hi all

I'm working on a module that an application controller can include.
Within that module I specify some action methods. I want to secure them
from invalid parameters, so I'd like to use ApplicationController's
verify() method in the modules body. But sadly it doesn't know this
method yet...
Is there a way to let the module know this method? Some sort of
after_include method that's automatically called after the module has
been mixed into the class?

Thanks a lot,
This topic is locked and can not be replied to.