removes filter from valuation index page

This commit is contained in:
kikito
2017-01-04 16:31:16 +01:00
parent 4ceeb68a90
commit 9c66fa0dc8
2 changed files with 2 additions and 6 deletions

View File

@@ -2,12 +2,10 @@ class Valuation::BudgetsController < Valuation::BaseController
include FeatureFlags
feature_flag :budgets
has_filters %w{current finished}, only: :index
load_and_authorize_resource
def index
@budgets = Budget.send(@current_filter).order(created_at: :desc).page(params[:page])
@budgets = @budgets.current.order(created_at: :desc).page(params[:page])
end
end

View File

@@ -1,7 +1,5 @@
<h2 class="inline-block"><%= t("valuation.budgets.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "valuation.budgets.index" %>
<h3><%= page_entries_info @budgets %></h3>
<table>
@@ -14,4 +12,4 @@
<% end %>
</table>
<%= paginate @budgets %>
<%= paginate @budgets %>