Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions lib/money/currency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ def inherit(parent_iso_code, curr)
# @return [Boolean] true if the currency previously existed, false
# if it didn't.
def unregister(curr)
if curr.is_a?(Hash)
key = curr.fetch(:iso_code).downcase.to_sym
else
key = curr.downcase.to_sym
end
key =
if curr.is_a?(Hash)
curr.fetch(:iso_code).downcase.to_sym
else
curr.downcase.to_sym
end
existed = @table.delete(key)
@stringified_keys = nil if existed
existed ? true : false
Expand Down