# Call ActionController's verify() in a module?

**URL:** <https://www.ruby-forum.com/t/call-actioncontrollers-verify-in-a-module/90570>\
**Category:** Rails\
**Created:** [March 29, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/call-actioncontrollers-verify-in-a-module/90570 "2007-03-29T23:45:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [March 29, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/call-actioncontrollers-verify-in-a-module/90570/1 "2007-03-29T23:45:24Z")

</div>

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,  
Josh
