gitlab-org--gitlab-foss/app/controllers/dashboard/milestones_controller.rb

21 lines
417 B
Ruby
Raw Normal View History

2015-04-30 13:06:18 -04:00
class Dashboard::MilestonesController < Dashboard::ApplicationController
include GlobalMilestones
before_action :projects
before_action :milestone, only: [:show]
2015-03-03 10:19:37 -05:00
def index
respond_to do |format|
format.html do
@milestones = Kaminari.paginate_array(milestones).page(params[:page])
end
format.json do
render json: milestones
end
end
2015-03-03 10:19:37 -05:00
end
def show
end
end