prefer AS's Inflector over Extlib
This commit is contained in:
		
							parent
							
								
									740289938b
								
							
						
					
					
						commit
						1a414e7f0d
					
				|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue