Fix csv download of stats
https://medium.com/@mitsun.chieh/activerecord-relation-with-raw-sql-argument-returns-a-warning-exception-raising-8999f1b9898a
This commit is contained in:
parent
58adcf14e4
commit
9df0d98109
1 changed files with 3 additions and 3 deletions
|
@ -57,9 +57,9 @@ class StatsController < ApplicationController
|
|||
"procedures.libelle",
|
||||
"users.id",
|
||||
"dossiers.state",
|
||||
"dossiers.depose_at - dossiers.created_at",
|
||||
"dossiers.en_instruction_at - dossiers.depose_at",
|
||||
"dossiers.processed_at - dossiers.en_instruction_at"
|
||||
Arel.sql("dossiers.depose_at - dossiers.created_at"),
|
||||
Arel.sql("dossiers.en_instruction_at - dossiers.depose_at"),
|
||||
Arel.sql("dossiers.processed_at - dossiers.en_instruction_at")
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue