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.
Fc582698581884352e745d1d4c64699d?d=identicon&s=25 Joshua Muheim (josh)
on 2007-03-29 23: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.