8 lines
150 B
Ruby
8 lines
150 B
Ruby
module BallotsHelper
|
|
|
|
def progress_bar_width(amount_available, amount_spent)
|
|
(amount_spent / amount_available.to_f * 100).to_s + "%"
|
|
end
|
|
|
|
end
|