Class: Dashboard::MilestonesController

Inherits:
ApplicationController
  • Object
show all
Includes:
GlobalMilestones
Defined in:
app/controllers/dashboard/milestones_controller.rb

Instance Method Summary collapse

Methods included from GlobalMilestones

#milestone, #milestones

Instance Method Details

#indexObject


7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/dashboard/milestones_controller.rb', line 7

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
end

#showObject


18
19
# File 'app/controllers/dashboard/milestones_controller.rb', line 18

def show
end