This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
23 lines
441 B
Ruby
23 lines
441 B
Ruby
class Budgets::Investments::FormComponent < ApplicationComponent
|
|
include TranslatableFormHelper
|
|
include GlobalizeHelper
|
|
|
|
attr_reader :investment, :url
|
|
use_helpers :current_user, :budget_heading_select_options, :suggest_data
|
|
|
|
def initialize(investment, url:)
|
|
@investment = investment
|
|
@url = url
|
|
end
|
|
|
|
private
|
|
|
|
def budget
|
|
investment.budget
|
|
end
|
|
|
|
def categories
|
|
Tag.category.order(:name)
|
|
end
|
|
end
|