1. 20 6月, 2017 1 次提交
  2. 23 5月, 2017 1 次提交
  3. 19 5月, 2017 1 次提交
  4. 07 5月, 2017 1 次提交
  5. 14 4月, 2017 1 次提交
  6. 06 2月, 2017 1 次提交
  7. 02 2月, 2017 2 次提交
  8. 25 1月, 2017 1 次提交
    • M
      Add partial iteration variable to template keys · e524327e
      Matthew Eagar 提交于
      When rendering heterogeneous collection using `render @collection` or
      `render partial: @collection`, the expected `<partial_name>_iteration`
      variable is missing due to `find_template` not having the name of the
      iteration variable included in its cache keys.
      e524327e
  9. 24 1月, 2017 1 次提交
  10. 12 1月, 2017 1 次提交
  11. 06 1月, 2017 1 次提交
  12. 17 9月, 2016 1 次提交
  13. 16 8月, 2016 1 次提交
  14. 07 8月, 2016 2 次提交
  15. 26 7月, 2016 2 次提交
  16. 22 6月, 2016 1 次提交
    • E
      Change the raw template handler to render html-safe strings · 1de0df86
      eileencodes 提交于
      In PR #24929 the changelog was updated to make note that while the new
      template handler was changed to raw this changed the behavior when
      outputting plain html or js files. Previously ERB would output the files
      unescaped. Changing the default handler to RAW meant that these same
      files would be rendered as escaped rather than as js or html.
      
      Because of this change in behavior and after the discussion #24949 in we
      decided to change the behavior of the Raw handler to output html_safe
      strings by default.
      
      Now files rendered with the default handler (raw) render the file
      unescaped.
      1de0df86
  17. 17 4月, 2016 1 次提交
  18. 04 3月, 2016 1 次提交
    • B
      Fix partial rendering with dot in filename · 39c44480
      Benjamin Quorning 提交于
      When rendering a collection with a partial whose filename contains a dot, e.g.
      "customer.mobile", we would set a `locals[:'customer.mobile']` variable instead
      of, as in earlier versions of Rails, `locals[:customer]`.
      
      This bug was introduced in da9038ea.
      39c44480
  19. 20 2月, 2016 1 次提交
    • K
      Make collection caching explicit. · b4558c10
      Kasper Timm Hansen 提交于
      Having collection caching that wraps templates and automatically tries
      to infer if they are cachable proved to be too much of a hassle.
      
      We'd rather have it be something you explicitly turn on.
      
      This removes much of the code and docs to explain the previous automatic
      behavior.
      
      This change also removes scoped cache keys and passing cache_options.
      b4558c10
  20. 13 2月, 2016 1 次提交
  21. 23 1月, 2016 1 次提交
  22. 06 1月, 2016 1 次提交
  23. 15 12月, 2015 1 次提交
    • S
      Remove ActionView::Helpers::CacheHelper#fragment_cache_key · 1a404abc
      Sam Stephenson 提交于
      Introduced in e56c6354, `CacheHelper#fragment_cache_key` is a duplicate of `ActionController::Caching::Fragments#fragment_cache_key`.
      
      We now require the view to provide this method on its own (as with `view_cache_dependencies`); `ActionController::Caching::Fragments` exports its version as a `helper_method`.
      1a404abc
  24. 13 11月, 2015 1 次提交
  25. 03 11月, 2015 1 次提交
  26. 26 9月, 2015 1 次提交
  27. 29 6月, 2015 1 次提交
    • R
      Fix cache issue when different partials use the same collection · da167457
      Roque Pinel 提交于
      Adds the `virtual_path` option to `cache_fragment_name` so it can
      be provided when needed.
      
      That allows `cache_collection_render` to get the appropriate cache
      key with the digest generated based on the template and prevent
      collision with other templates that cache the same collection.
      da167457
  28. 14 5月, 2015 1 次提交
    • H
      Do not put partial name to local_assigns when rendering without an object · bef9484c
      Henrik Nygren 提交于
      When one rendered a partial template without specifying an object
      or a collection (e.g. <%= render partial: 'partial_name' %>), Rails
      would make an object called :partial_name available in local_assigns.
      I don't think this was the intended behavior, since no local variable
      called 'partial_name' gets defined in the view.
      bef9484c
  29. 21 2月, 2015 3 次提交
    • K
      Collections automatically cache and fetch partials. · 11644fd0
      Kasper Timm Hansen 提交于
      Collections can take advantage of `multi_read` if they render one template
      and their partials begin with a cache call.
      
      The cache call must correspond to either what the collections elements are
      rendered as, or match the inferred name of the partial.
      
      So with a notifications/_notification.html.erb template like:
      
      ```ruby
      <% cache notification %>
        <%# ... %>
      <% end %>
      ```
      
      A collection would be able to use `multi_read` if rendered like:
      
      ```ruby
      <%= render @notifications %>
      <%= render partial: 'notifications/notification', collection: @notifications, as: :notification %>
      ```
      11644fd0
    • F
      Error message testing fix · b1d26350
      Franky W 提交于
      The testing of error messages have been implemented wrongly a few times.
      This is an attempt to fix it.
      
      For example, some of these test should have failed with the new code.
      The reason they are not failling with the new string is the fact they
      were not being tested beforehand.
      b1d26350
    • K
      Merge multi_fetch_fragments. · e56c6354
      Kasper Timm Hansen 提交于
      Makes caching a collection of template partials faster using `read_multi`
      on the Rails cache store.
      
      Some caching implementations have optimized `read_multi` so we don't have
      to check in the cache store for every template.
      e56c6354
  30. 06 2月, 2015 1 次提交
  31. 03 2月, 2015 1 次提交
  32. 30 12月, 2014 1 次提交
  33. 19 12月, 2014 1 次提交
  34. 29 11月, 2014 1 次提交
  35. 19 7月, 2014 1 次提交