Sha256: af0b091a22bacfa9a23d73e74bb95a8bd1c30f51a43dad4326a20d9a92c1f6da

Contents?: true

Size: 1.13 KB

Versions: 116

Compression:

Stored size: 1.13 KB

Contents

/ Note that summary_part#cache_key will be called and will return something like this
/
/  renalware/problems/problems/query-470b1201d5696133ec89b9415d438586-6-20180218160613719105
/
/ (see http://www.rubydoc.info/github/rails/rails/ActiveRecord%2FRelation%3Acache_key)
/ and because we are caching inside a partial, Rails will append the MD5 digest of this template's
/ content i.e. 1ff2cfc1505d571ac18a3d1d3708ebb4 and so in Redis the final cache key will be e.g.
/
/  renalware/problems/problems/...86-6-20180218160613719105/1ff2cfc1505d571ac18a3d1d3708ebb4
/
/ Note you can get the partial digest value using `cache_fragment_name[0]`
- cache_if(summary_part.cache?, summary_part) do
  .summary-part--problems
    article
      header
        h1
          = link_to "Problems (#{summary_part.problems.length})",
                    patient_problems_path(summary_part.patient)

        = link_to patient_problems_path(summary_part.patient), class: "button" do
          | Add

      ul.no-bullet
        - summary_part.problems.each do |problem|
          li
            = problem.full_description
            = " - #{l(problem.created_at.to_date)}"

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
renalware-core-2.0.103 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.102 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.101 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.100 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.99 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.98 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.97 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.96 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.95 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.94 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.93 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.92 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.91 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.90 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.89 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.88 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.87 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.86 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.85 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.84 app/views/renalware/problems/problems/_summary_part.html.slim