RubyMoney/money · error · StandardError

Heuristics deprecated, add `gem "money-heuristics"` to Gemfi

Error message

Heuristics deprecated, add `gem "money-heuristics"` to Gemfile

What it means

Error "Heuristics deprecated, add `gem "money-heuristics"` to Gemfile" thrown in RubyMoney/money.

Source

Thrown at lib/money/currency/heuristics.rb:7

# frozen_string_literal: true

class Money
  class Currency
    module Heuristics
      def analyze(_str)
        raise StandardError, 'Heuristics deprecated, add `gem "money-heuristics"` to Gemfile'
      end
    end
  end
end

View on GitHub (pinned to 26e2829c34)

When it happens

Trigger: Thrown at lib/money/currency/heuristics.rb:7 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of RubyMoney/money@26e2829c34 (2026-08-23). Data as JSON: /api/errors/bf8cca192f44a430. Report an issue: GitHub.