valleyjo/orgman

View on GitHub
app/decorators/fine_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FineDecorator < Draper::Decorator
  delegate_all

  # Define presentation-specific methods here. Helpers are accessed through
  # `helpers` (aka `h`). You can override attributes, for example:
  #
  #   def created_at
  #     helpers.content_tag :span, class: 'time' do
  #       object.created_at.strftime("%a %m/%d/%y")
  #     end
  #   end

  def format_paid
    object.paid ? 'paid' : 'not paid'
  end
end