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.126 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.125 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.124 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.123 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.121 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.120 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.119 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.118 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.117 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.116 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.115 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.113 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.112 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.111 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.110 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.109 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.108 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.106 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.105 app/views/renalware/problems/problems/_summary_part.html.slim
renalware-core-2.0.104 app/views/renalware/problems/problems/_summary_part.html.slim