Method: CustomTable::ApplicationHelper#amount_color

Defined in:
app/helpers/custom_table/application_helper.rb

#amount_color(c) ⇒ Object

Colored



426
427
428
# File 'app/helpers/custom_table/application_helper.rb', line 426

def amount_color(c)
  (:span, amount(c), class: ["amount", (c.to_f >= 0 ? "positive" : "negative")])
end