Is there an on_reload hook?

I am working on a code base that uses a fair amount of custom queries
and
then caches the result in an instance var. Now when I call reload I
need to
clear out this cached data. I looked for an on_reload hook and didn’t
find
one in the API for ActiveRecord.

Any ideas?

Thanks,
Dave

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