Move method to get available filters to the model
We're naming the method `investments_filters`, with the word "investments" in plural, to be consistent with the method `investments_orders`.
This commit is contained in:
@@ -16,12 +16,6 @@ module InvestmentFilters
|
||||
end
|
||||
|
||||
def investment_filters
|
||||
[
|
||||
"not_unfeasible",
|
||||
"unfeasible",
|
||||
("unselected" if @budget.publishing_prices_or_later?),
|
||||
("selected" if @budget.publishing_prices_or_later?),
|
||||
("winners" if @budget.finished?)
|
||||
].compact
|
||||
@budget.investments_filters
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user