Skip to content

Commit c398a8f

Browse files
committed
delete ✂️ unused method Account#allowance
1 parent 6da895d commit c398a8f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/models/account.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ def update_balance
2222
save
2323
end
2424

25-
# Return the maximum allowed amount of time that the acccount is able to
26-
# spend without overflowing
27-
def allowance
28-
if min_allowed_balance
29-
[0, balance - min_allowed_balance].min
30-
else
31-
Float::INFINITY
32-
end
33-
end
34-
3525
# Print the account as its accountable reference
3626
def to_s
3727
accountable.to_s

0 commit comments

Comments
 (0)