Enable the Layout/SpaceBeforeBlockBraces cop
This commit is contained in:
parent
8b0b8162f0
commit
386fbce776
25 changed files with 53 additions and 53 deletions
|
@ -6,7 +6,7 @@ class API::V1::DossiersController < APIController
|
|||
def index
|
||||
dossiers = @dossiers.page(params[:page]).per(per_page)
|
||||
|
||||
render json: { dossiers: dossiers.map{ |dossier| DossiersSerializer.new(dossier) }, pagination: pagination(dossiers) }, status: 200
|
||||
render json: { dossiers: dossiers.map { |dossier| DossiersSerializer.new(dossier) }, pagination: pagination(dossiers) }, status: 200
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render json: {}, status: 404
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue