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:
parent
934d294592
commit
49c5059813
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue