adds admin budgets index

This commit is contained in:
Juanjo Bazán
2016-07-28 12:36:39 +02:00
parent baddfdb3d1
commit 1ad78d599e
11 changed files with 157 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class Admin::BudgetsController < Admin::BaseController
has_filters %w{open finished}, only: :index
def index
@budgets = Budget.send(@current_filter).order(created_at: :desc).page(params[:page])
end
end