When render the investment list component with the link "see all investments", now we redirect to groups index page when a budget has multiple headings.
13 lines
211 B
Ruby
13 lines
211 B
Ruby
class Budgets::Groups::IndexComponent < ApplicationComponent
|
|
include Header
|
|
attr_reader :budget
|
|
|
|
def initialize(budget)
|
|
@budget = budget
|
|
end
|
|
|
|
def title
|
|
t("budgets.groups.show.title")
|
|
end
|
|
end
|