1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Fixed Rails 2.3.x console stack overflow issue

This commit is contained in:
Mike Dvorkin 2010-11-13 09:42:50 -08:00
parent 934d294592
commit 49c5059813

View file

@ -1 +1,13 @@
require File.join(File.dirname(__FILE__), "..", "init")
# Copyright (c) 2010 Michael Dvorkin
#
# Awesome Print is freely distributable under the terms of MIT license.
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
#
# Load awesome_print when installed as Rails 2.3.x plugin.
#
# NOTE: After Rails 2.3.x console loads awesome_print/lib/ap.rb it attempts
# to load this file as well. Make sure to check whether the awesome_print
# is already loaded to avoid Ruby stack overflow when extending core classes.
#
require File.join(File.dirname(__FILE__), "..", "init") unless defined?(AwesomePrint)