Skip to content

Money::RatesStore::Memory#reset! is using outdated instance variable #18

@synth

Description

@synth

Given:

class Memory
# Add method to reset the build in memory store
# @param [Hash] rtd Optional initial exchange rate data.
# @return [Object] store.
def reset!(rtd = {})
transaction { @index = rtd }
end
end
end

You can see it is overwriting the instance variable @index.

However, in this commit: RubyMoney/money@57c3da8 - @index was removed or replaced by @rates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions