spree/spree-multi-domain — pull request #20 by jroes (2012-09-14 15:16:05+00:00)
Title: Fix occasional controller helpers missing issue

NOTE: This branch is based on my 1.2 update branch located in pull request over at spree/spree-multi-domain#19.

I was having an issue where if I left Spree running for a while in development mode without interacting with it and then I refreshed the page, I would get an error that `current_store` or `current_tracker` wasn't defined. My best guess is that the initializer stuff isn't always getting called, or not getting called at the right time.

It looks like the way these helpers were being added is inconsistent with the way Spree core's source and other official extensions handle this, so I went ahead and aligned it with the rest of the community and I believe the issue has disappeared. Additionally, this seems to have cleaned up the code a bit as well :)