I've been asked to build a gem out of a number of ActiveResource subclasses in a Rails app of ours.
The difficulty is that the self.site
call uses a constant set in the Rails environment file (so that dev, test, and production point to different websites). After adding my new gem to the Gemfile, I find that the app loads the gem before the environment file, so my ActiveResource models break the app.
What should I do?
Specs: Rails 3.2.3, Ruby 1.9.3