forked from fixin.me/fixin.me
Remove default BigDecimal formatting
This commit is contained in:
parent
a4745c9cb8
commit
0620d18391
@ -22,7 +22,7 @@
|
|||||||
<%= link_to unit.symbol, edit_unit_path(unit) %>
|
<%= link_to unit.symbol, edit_unit_path(unit) %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= unit.name %></td>
|
<td><%= unit.name %></td>
|
||||||
<td class="number"><%= unit.multiplier unless unit.multiplier == 1 %></td>
|
<td class="number"><%= unit.multiplier.to_s('3F') unless unit.multiplier == 1 %></td>
|
||||||
<% if current_user.at_least(:active) %>
|
<% if current_user.at_least(:active) %>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<%= image_button_to t(".delete_unit"), "delete-outline", unit_path(unit),
|
<%= image_button_to t(".delete_unit"), "delete-outline", unit_path(unit),
|
||||||
|
@ -1 +0,0 @@
|
|||||||
require 'core_ext/big_decimal/formatting'
|
|
@ -1,12 +0,0 @@
|
|||||||
#require "bigdecimal"
|
|
||||||
#require "bigdecimal/util"
|
|
||||||
|
|
||||||
module FixinMe
|
|
||||||
module BigDecimalWithGrouping
|
|
||||||
def to_s(format = "3F")
|
|
||||||
super(format)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
BigDecimal.prepend(FixinMe::BigDecimalWithGrouping)
|
|
Loading…
x
Reference in New Issue
Block a user