I have a singleton store in my Rails application which holds some assets. It's accessible like this :
For some reasons I don't have any database service in my project apart from a Redis instance where Resque does its magic.
I would like to access the assets from the Resque workers like this :
Because workers are in different threads, the instance of Synchronizer I retrieve is not the same as the Rails environment's.
It kinds of kill the interest of using a Singleton in the first place. I could pass information about asset as a Hash into workers instead, but is there another way to access the proper singleton instance?