Skip to content

Commit

Permalink
Nil fix in cache key for statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Mar 17, 2016
1 parent c669edf commit fb38833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/statistics_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def cache_key_for_status
latest_update = [
Refugee.maximum(:updated_at),
Home.maximum(:updated_at),
Placement.maximum(:updated_at)].sort.last.try(:utc).try(:to_s, :number)
Placement.maximum(:updated_at)].reject(&:blank?).sort.last.try(:utc).try(:to_s, :number)
"status/index-#{Date.today.to_s}-#{count}-#{latest_update}"
end
end

0 comments on commit fb38833

Please sign in to comment.