Minor change to inflection.

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

View File

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