diff options
author | rick <technoweenie@gmail.com> | 2008-06-27 23:29:25 -0700 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-06-27 23:29:25 -0700 |
commit | aec3c7aa72c89e37edae4d14ac98d7a6de4a195c (patch) | |
tree | bfd4705a5014616d6d377ca1d34d1d5dbc015d2c /activesupport/lib/active_support | |
parent | 7fc628e3fcda6342a8cee0a6236987b57ac10270 (diff) | |
download | rails-aec3c7aa72c89e37edae4d14ac98d7a6de4a195c.tar.gz rails-aec3c7aa72c89e37edae4d14ac98d7a6de4a195c.tar.bz2 rails-aec3c7aa72c89e37edae4d14ac98d7a6de4a195c.zip |
add special requires for ActiveSupport::Inflector so you can load it individually
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/inflector.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index 47bd6e1767..8d55ad27ac 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -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
\ No newline at end of file |