adds admin budgets index
This commit is contained in:
9
app/controllers/admin/budgets_controller.rb
Normal file
9
app/controllers/admin/budgets_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user