We were filtering by winners investments for finished budget without having in consideration other filters. We want the default filter to be `winners` for finished budgets.
13 lines
356 B
Ruby
13 lines
356 B
Ruby
module Budgets
|
|
class GroupsController < ApplicationController
|
|
load_and_authorize_resource :budget
|
|
load_and_authorize_resource :group, class: "Budget::Group"
|
|
|
|
before_action :set_default_budget_filter, only: :show
|
|
has_filters %w[not_unfeasible feasible unfeasible unselected selected winners], only: [:show]
|
|
|
|
def show
|
|
end
|
|
|
|
end
|
|
end |