Skip to content

Instantly share code, notes, and snippets.

@radamant
Created July 28, 2009 21:51
Show Gist options
  • Select an option

  • Save radamant/157691 to your computer and use it in GitHub Desktop.

Select an option

Save radamant/157691 to your computer and use it in GitHub Desktop.
...
ROOT_URL = "/producer"
...
[
File.join(ENV['HOME'], ".producerrc"),
File.join(RAILS_ROOT, "config", "producer.rc")
].each do |file|
if File.exist?(file)
puts "loading #{file}"
load file
break
end
end
if Object.const_defined?("ROOT_URL")
puts "found ROOT_URL"
config.action_controller.relative_url_root = ROOT_URL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment