Refactor various ruby files
* Insights based on brakeman report
This commit is contained in:
@ -41,7 +41,7 @@ class ExerciseCollectionsController < ApplicationController
|
||||
private
|
||||
|
||||
def set_exercise_collection
|
||||
@exercise_collection = ExerciseCollection.find(params[:id])
|
||||
@exercise_collection = ExerciseCollection.find_by(id: params[:id])
|
||||
authorize!
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user