[Q] How run Custom code on each request/action

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

application.rb, before_filter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs