diff --git a/lib/google/inflection.rb b/lib/google/inflection.rb index cdf71ab4b..127a6d4e2 100644 --- a/lib/google/inflection.rb +++ b/lib/google/inflection.rb @@ -14,15 +14,11 @@ module Google - if defined?(ActiveSupport::Inflector) + begin + require 'active_support/inflector' INFLECTOR = ActiveSupport::Inflector - else - begin - require 'extlib/inflection' - INFLECTOR = Extlib::Inflection - rescue LoadError - require 'active_support/inflector' - INFLECTOR = ActiveSupport::Inflector - end + rescue LoadError + require 'extlib/inflection' + INFLECTOR = Extlib::Inflection end end