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:
parent
7fc628e3fc
commit
aec3c7aa72
1 changed files with 5 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue