use shorter notation for creating procs, as suggested by RuboCop

This commit is contained in:
Hauke Klement
2015-02-17 08:21:00 +01:00
parent f6965aff12
commit b21a7ee8e8
15 changed files with 20 additions and 20 deletions

View File

@ -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