Add proposals index in admin

This commit is contained in:
Javi Martín
2018-11-15 13:38:06 +01:00
parent 7891efee32
commit 4770217373
9 changed files with 94 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
class Admin::ProposalsController < Admin::BaseController
include FeatureFlags
feature_flag :proposals
def index
@proposals = Proposal.sort_by_created_at.page(params[:page])
end
def show
@proposal = Proposal.find(params[:id])
end
end