lib/socrates/string_helpers.rb in socrates-0.1.23 vs lib/socrates/string_helpers.rb in socrates-0.1.24

- old
+ new

@@ -10,10 +10,10 @@ end # Lifted from Rails' text helpers. def self.pluralize(count, singular, plural_arg = nil, plural: plural_arg) word = - if count == 1 || count =~ /^1(\.0+)?$/ + if count == 1 || count.to_s =~ /^1(\.0+)?$/ singular else plural || singular.pluralize end