Prefer modern syntax
This commit is contained in:
@@ -30,6 +30,6 @@ class Cards::StepsController < ApplicationController
|
||||
end
|
||||
|
||||
def step_params
|
||||
params.require(:step).permit(:content, :completed)
|
||||
params.expect(step: [ :content, :completed ])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user