use shorter notation for creating procs, as suggested by RuboCop
This commit is contained in:
@ -11,7 +11,7 @@ module CodeOcean
|
||||
def create
|
||||
@file = CodeOcean::File.new(file_params)
|
||||
authorize!
|
||||
create_and_respond(object: @file, path: Proc.new { implement_exercise_path(@file.context.exercise, tab: 2) })
|
||||
create_and_respond(object: @file, path: proc { implement_exercise_path(@file.context.exercise, tab: 2) })
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
Reference in New Issue
Block a user