prefer AS's Inflector over Extlib

This commit is contained in:
Abdelkader Boudih 2014-09-17 15:38:51 +00:00
parent 740289938b
commit 1a414e7f0d
1 changed files with 5 additions and 9 deletions

View File

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