Forum: Ruby on Rails [Q] How run Custom code on each request/action

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mathieu C. (Guest)
on 2006-04-10 18:15
(Received via mailing list)
Dears,

For obscure reasons I'll like to reset a session key when
request/action is outside a specific controller.

Is there a common place in the app where I can put such code, instead
of adding statements in each controllers ?

DRY

Thanks,
Mathieu
Steve L. (Guest)
on 2006-04-10 18:21
(Received via mailing list)
application.rb, before_filter
This topic is locked and can not be replied to.