Skip to content

Business intelligence made simple

Format all numerics

Andrew Kane88f7b79afe76
diff --git a/app/helpers/blazer/base_helper.rb b/app/helpers/blazer/base_helper.rb
index 5eeadd83..7cd0229d 100644
--- a/app/helpers/blazer/base_helper.rb
+++ b/app/helpers/blazer/base_helper.rb
@@ -12,7 +12,7 @@ module Blazer
BLAZER_IMAGE_EXT = %w[png jpg jpeg gif]
def blazer_format_value(key, value)
- if value.is_a?(Integer) && !key.to_s.end_with?("id") && !key.to_s.start_with?("id")
+ if value.is_a?(Numeric) && !key.to_s.end_with?("id") && !key.to_s.start_with?("id")
number_with_delimiter(value)
elsif value =~ BLAZER_URL_REGEX
# see if image or link