Rajdeep Mandrekar
Rajdeep Mandrekar
`lib/core_ext/stringify_keys.rb` redefines `Hash#transform_keys` with a block-only (0-arity) implementation (commented *"Stolen from ActiveSupport"*): ```ruby class Hash def transform_keys return enum_for(:transform_keys) { size } unless block_given? result = {} each_key { |key|...
Hi Guys, We are using money gem. Version 6.7.1 I have noticed a difference between how `#to_money` and `Money.new` works ``` 2100.5.to_money('JPY') => # ``` v/s ``` Money.from_amount(2100.5, 'JPY') =>...
Hi Guys, We are using money gem. Version 6.7.1 I have noticed a difference in how #to_money works with or without precision ``` "1.000,00".to_money("CRC").to_s => "1000.00" ```` vs ``` "1.000".to_money("CRC").to_s...