0

Is this good idea set before filter like this

ActionController::Base.before_filter { TitleHelper::Taitl.reset }

I use this because rails cache classes, and i need to reset variable to make my script work correct

Also i don't want call it explicitly in ApplicationController

Here is my code

timfjord
  • 1,759
  • 19
  • 20
  • We need more info. (Show us the code!) You should re-write your code so the class caching doesn't matter rather than needing to reset the class. – Larry K May 13 '12 at 17:46
  • You said ***call** before filter like this*. But you don't call it this way. You just **set it up**. – jdoe May 13 '12 at 18:10

0 Answers0