Skip to content
This repository
tree: c78914fe9a
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (18 sloc) 0.58 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb

if defined?(Titanium)
  # Hack for load paths - Titanium doesn't add .
  app_resources = Titanium.App.appURLToPath("app://index.html")
  APP_ROOT = File.dirname(app_resources)
else
  APP_ROOT = File.join(File.dirname(__FILE__), "..") unless defined?(APP_ROOT)
end
$LOAD_PATH << APP_ROOT
$LOAD_PATH.uniq!

bowline_path = File.join(APP_ROOT, *%w[vendor bowline lib bowline.rb])

if File.exist?(bowline_path)
  require bowline_path
else
  require "rubygems"
  require "bowline"
end
Something went wrong with that request. Please try again.