mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
20 lines
693 B
Ruby
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 |