From aec3c7aa72c89e37edae4d14ac98d7a6de4a195c Mon Sep 17 00:00:00 2001 From: rick Date: Fri, 27 Jun 2008 23:29:25 -0700 Subject: add special requires for ActiveSupport::Inflector so you can load it individually --- activesupport/lib/active_support/inflector.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activesupport/lib/active_support/inflector.rb') 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 -- cgit v1.2.3