1. 25 8月, 2016 2 次提交
    • A
      remove useless freeze · c1049403
      Aaron Patterson 提交于
      Ruby already does this freeze for us.
      c1049403
    • A
      Simplify cache hit logging · 07da5aeb
      Aaron Patterson 提交于
      CacheHelper is mixed in to Helpers, Helpers is mixed in to AV::Base.
      This means we can count on instances of AV::Base to have the "cache hit"
      method on them, and we can stop setting an ivar for cache logging and
      just ask the view if it was a cache hit.
      07da5aeb
  2. 23 8月, 2016 1 次提交
  3. 16 8月, 2016 1 次提交
  4. 12 8月, 2016 2 次提交
  5. 11 8月, 2016 1 次提交
  6. 09 8月, 2016 1 次提交
  7. 08 8月, 2016 2 次提交
    • X
      code gardening: removes redundant selfs · a9dc4545
      Xavier Noria 提交于
      A few have been left for aesthetic reasons, but have made a pass
      and removed most of them.
      
      Note that if the method `foo` returns an array, `foo << 1`
      is a regular push, nothing to do with assignments, so
      no self required.
      a9dc4545
    • S
      Modify LogSubscriber for single partial's cache message. · ab2af4df
      Stan Lo 提交于
      Implement naive partial caching mechanism.
      
      Add test for LogSubscriber
      
      Use ActionView::Base#log_payload to store log_subscriber's payload, so we can pass cache result into it.
      
      Fixed tests
      
      Remove useless settings
      
      Check if #log_payload exists before calling it. Because other classes also includes CacheHelper but don't have is attribute
      
      Use @log_payload_for_partial_reder instead of #log_payload to carry ActionView's payload.
      
      Update test's hash syntax
      
      Add configuration to enable/disable fragment caching logging
      
      Remove unless test and add new test to ensure cache info won't effect next rendering's log
      
      Move :enable_fragment_cache_logging config from ActionView to ActionPack
      
      Apply new config to tests
      
      Update actionview's changelog
      
      Update configuration guide
      
      Improve actionview's changelog
      
      Refactor PartialRenderer#render and log tests
      
      Mute subscriber's log instead of disabling instrumentation.
      
      Fix typo, remove useless comment and use new hash syntax
      
      Improve actionpack's log_subscriber test
      
      Fix rebase mistake
      
      Apply new config to all caching intstrument actions
      ab2af4df
  8. 07 8月, 2016 5 次提交
  9. 26 7月, 2016 3 次提交
    • S
      Use to_a to pre-buffer the collection · 87899cfc
      Steven Harman 提交于
      We can safely assume we're not dealing with an infinite collection as
      we're about to call `each` on it and collect the results until it
      terminates on its own. Given that, `to_a` is implemented by the normal
      Array-like objects, and less Array-like objects like `Enumerator` and
      `Enumerator::Lazy`.
      87899cfc
    • S
      Default to an empty collection if falsey given · e4a49362
      Steven Harman 提交于
      This will ensure we attempt to render an empty collection, meaning we
      don't actually render anything at all. Allowing `nil` or a falsey value
      through results in calling `render_partial` rather than
      `render_collection`, which isn't what we want.
      e4a49362
    • S
      Fix collection_from_options to allow Enumerators · ae75930b
      Steven Harman 提交于
      An optimization was introduced in
      https://github.com/rails/rails/commit/27f4ffd11a91b534fde9b484cb7c4e515ec0fe77
      which tried to `#to_ary` the collection to prevent unnecessary queries
      for ActiveRecord scopes/relations. If the given collection did not
      respond to `#to_ary`, and empty collection was returned. That meant you
      couldn't use collections built from `Enumerator` nor `Enumerable`.
      
      With this change, `#collection_from_options` will attempt the
      optimization, but fall back to passing along the given collection,
      as-is.
      ae75930b
  10. 25 7月, 2016 1 次提交
  11. 23 7月, 2016 1 次提交
  12. 21 7月, 2016 1 次提交
  13. 20 7月, 2016 1 次提交
  14. 19 7月, 2016 1 次提交
  15. 16 7月, 2016 1 次提交
  16. 14 7月, 2016 1 次提交
  17. 04 7月, 2016 1 次提交
    • R
      Tiny documentation fixes [ci skip] · e8f167d2
      Robin Dupret 提交于
      Fix a link to use RDoc syntax and make sure that the titles' level
      match the section we are in since we are both documenting the new
      and the legacy syntax.
      e8f167d2
  18. 02 7月, 2016 1 次提交
  19. 29 6月, 2016 3 次提交
  20. 28 6月, 2016 6 次提交
  21. 26 6月, 2016 1 次提交
  22. 22 6月, 2016 3 次提交