I have a separate script in my Rails app which is executed like a worker by Bunny (an AMQP client), I don't need to load the entire app. For instance I certainly won't need anything like Unicorn or any of the the routes, etc. I basically only need access to my models. Is this possible?
Right now the worker loads the entire rails app like this:
require ::File.expand_path('../config/environment', __FILE__)