Rename the variables in StatsController#index

This commit is contained in:
gregoirenovel 2017-04-03 16:42:51 +02:00
parent c4c6095abd
commit e192038045
2 changed files with 4 additions and 4 deletions

View file

@ -4,8 +4,8 @@ class StatsController < ApplicationController
procedures = Procedure.where(:created_at => 30.days.ago..Time.now).group("date_trunc('day', created_at)").count
dossiers = Dossier.where(:created_at => 30.days.ago..Time.now).group("date_trunc('day', created_at)").count
@procedures = clean_hash(procedures)
@dossiers = clean_hash(dossiers)
@procedures_30_days_flow = clean_hash(procedures)
@dossiers_30_days_flow = clean_hash(dossiers)
end
private

View file

@ -4,8 +4,8 @@
.stats
.stat-card
%h1 Procédures créées
= line_chart @procedures
= line_chart @procedures_30_days_flow,
.stat-card
%h1 Dossiers créés
= line_chart @dossiers
= line_chart @dossiers_30_days_flow,