1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't use #tap before Active Support is available, since older versions of ruby don't have native implementations

[#2603 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Chris Kampmeier 2009-05-03 18:09:06 -07:00 committed by Jeremy Kemper
parent 1c6fcbfd2d
commit d3ee8756c8

View file

@ -21,9 +21,8 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
"#{File.dirname(__FILE__)}/../../activesupport/lib".tap do |path|
$:.unshift(path) if File.directory?(path)
end
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
require 'active_support'
require 'active_support/core/all'