Commit 606701ada4076b963439983a5633535108d81f0f
1 parent
625fb2f2
Exists in
master
and in
4 other branches
Look for milestone by iid in milestone controller
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/controllers/projects/milestones_controller.rb
... | ... | @@ -81,7 +81,7 @@ class Projects::MilestonesController < Projects::ApplicationController |
81 | 81 | protected |
82 | 82 | |
83 | 83 | def milestone |
84 | - @milestone ||= @project.milestones.find(params[:id]) | |
84 | + @milestone ||= @project.milestones.find_by_iid!(params[:id]) | |
85 | 85 | end |
86 | 86 | |
87 | 87 | def authorize_admin_milestone! | ... | ... |
spec/models/milestone_spec.rb