This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
20 lines
359 B
Ruby
20 lines
359 B
Ruby
class Admin::BudgetGroups::GroupsComponent < ApplicationComponent
|
|
include Admin::Namespace
|
|
|
|
attr_reader :groups
|
|
|
|
def initialize(groups)
|
|
@groups = groups
|
|
end
|
|
|
|
private
|
|
|
|
def budget
|
|
@budget ||= groups.first.budget
|
|
end
|
|
|
|
def headings_path(group)
|
|
send("#{namespace}_budget_group_headings_path", group.budget, group)
|
|
end
|
|
end
|