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:
parent
d4402c5554
commit
2f42433f0a
1 changed files with 2 additions and 11 deletions
|
@ -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.
|
||||
activesupport_path = "#{File.dirname(__FILE__)}/../../../activesupport/lib"
|
||||
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
|
||||
require 'active_support/inflector'
|
||||
|
|
Loading…
Reference in a new issue