Minor change to inflection.
This commit is contained in:
parent
4b6e032e1b
commit
99dae4e560
|
@ -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