Minor change to inflection.
This commit is contained in:
parent
abf64d5314
commit
93b0cb9b7e
|
@ -17,7 +17,12 @@ module Google
|
||||||
if defined?(ActiveSupport::Inflector)
|
if defined?(ActiveSupport::Inflector)
|
||||||
INFLECTOR = ActiveSupport::Inflector
|
INFLECTOR = ActiveSupport::Inflector
|
||||||
else
|
else
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue