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

add special requires for ActiveSupport::Inflector so you can load it individually

This commit is contained in:
rick 2008-06-27 23:29:25 -07:00
parent 7fc628e3fc
commit aec3c7aa72

View file

@ -307,4 +307,9 @@ module ActiveSupport
end
end
# in case active_support/inflector is required without the rest of active_support
require 'active_support/inflections'
require 'active_support/core_ext/string/inflections'
unless String.included_modules.include?(ActiveSupport::CoreExtensions::String::Inflections)
String.send :include, ActiveSupport::CoreExtensions::String::Inflections
end