Skip to content
  • Mike Dalessio's avatar
    900ce92c
    Avoid use of exceptions to detect invalid floats · 900ce92c
    Mike Dalessio authored
    Use Kernel::Float(..., exceptions:false) instead of a rescue block in
    ActionView::Helpers::NumberHelper and
    ActiveSupport::NumberHelper::NumberConverter to slightly improve
    performance.
    
    Also remove documentation that incorrectly states
    ActiveSupport::NumberHelper supports the `raise:` option.
    900ce92c
    Avoid use of exceptions to detect invalid floats
    Mike Dalessio authored
    Use Kernel::Float(..., exceptions:false) instead of a rescue block in
    ActionView::Helpers::NumberHelper and
    ActiveSupport::NumberHelper::NumberConverter to slightly improve
    performance.
    
    Also remove documentation that incorrectly states
    ActiveSupport::NumberHelper supports the `raise:` option.
Loading