Join GitHub today
Set RemoteModel.root_url dependent on RUBYMOTION_ENV #4
I wanted to set the root url depending on the environment. I figured I'd try use the RUBYMOTION_ENV. But I get uninitialised constant error.
I have the RemoteModel.rb file in app/initializers/. Is there a way to have the class initialize after the constant has been loaded? For example in the rakefile using app.file_dependencies or something?