Minor change to inflection.

This commit is contained in:
Bob Aman 2011-10-21 11:28:59 +03:00
parent 4b6e032e1b
commit 99dae4e560
1 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,12 @@ module Google
if defined?(ActiveSupport::Inflector)
INFLECTOR = ActiveSupport::Inflector
else
begin
require 'extlib/inflection'
INFLECTOR = Extlib::Inflection
rescue LoadError
require 'active_support/inflector'
INFLECTOR = ActiveSupport::Inflector
end
end
end