Files
atom/bundles/ruby-on-rails.tmbundle/Support/plugins/footnotes-edge/init.rb
2012-09-28 17:28:25 -06:00

20 lines
693 B
Ruby

# Copyright:
# (c) 2006 InquiryLabs, Inc.
# Visit us at http://inquirylabs.com/
# Version: 2.0
# License: MIT
# Author: Duane Johnson (duane.johnson@gmail.com)
# Description:
# Creates clickable footnotes on each rendered page, as well as clickable
# links in the backtrace should an error occur in your Rails app. Links take
# you to the right place inside TextMate.
# Enable only the TextMate on Macs in development mode
if (ENV['RAILS_ENV'] == 'development')
# Windows doesn't have 'uname', so rescue false
::MAC_OS_X = (`uname`.chomp == "Darwin") rescue false
require 'textmate_footnotes'
require 'textmate_initialize'
require 'textmate_backtracer' if ::MAC_OS_X
end