I have some problems with one of the stones supporting ActiveModel caching. When I use the observer for the cached model, during application initialization, it tries to describe the table in order to get all the field names.
The same thing is done when performing the rake task, including db: migration. In this case, there is some circular control error. I would like to discover the current rake task in order to skip pearl initialization, but I do not know how to find out if the code was called using the rake function. How to check it?
source share