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

Cherry-pick the inflector only

This commit is contained in:
Jeremy Kemper 2009-05-05 21:40:53 -07:00
parent d4402c5554
commit 2f42433f0a

View file

@ -1,12 +1,3 @@
begin
require 'active_support'
rescue LoadError
activesupport_path = "#{File.dirname(__FILE__)}/../../../activesupport/lib"
if File.directory?(activesupport_path)
$:.unshift activesupport_path
require 'active_support'
end
end
# So far, we only need the string inflections and not the rest of ActiveSupport.
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
require 'active_support/inflector'