app/assets/javascripts/ultimate/underscore/underscore.inflection.js in ultimate-helpers-0.1.0.1 vs app/assets/javascripts/ultimate/underscore/underscore.inflection.js in ultimate-helpers-0.2.0

- old
+ new

@@ -31,13 +31,14 @@ }, pluralize : function( word, count, includeNumber ) { var result; - + if( count !== undefined ) { + count = Math.round(count); result = ( count === 1 ) ? this.singularize( word ) : this.pluralize( word ); result = ( includeNumber ) ? [ count, result ].join( ' ' ) : result; } else { @@ -54,11 +55,11 @@ return gsub ? ( result = gsub ) : false; }, this ); } - + return result; }, singular : function( rule, replacement ) { @@ -170,7 +171,7 @@ /** * Underscore integration */ _.mixin( inflector.resetInflections( ) ); - + } )( _ );