14 lines
265 B
Ruby
14 lines
265 B
Ruby
class Budgets::GroupsAndHeadingsComponent < ApplicationComponent
|
|
attr_reader :budget
|
|
|
|
def initialize(budget)
|
|
@budget = budget
|
|
end
|
|
|
|
private
|
|
|
|
def price(heading)
|
|
tag.span(budget.formatted_heading_price(heading)) if budget.show_money?
|
|
end
|
|
end
|