1. 15 12月, 2012 1 次提交
    • A
      Removed :if and :unless from fragment cache option in favour of · 83223424
      Angelo capilleri 提交于
      cache_if(condition, option, &block) and cache_unless(condition, option, &block).
      
      In the PR #8371 was introduced  conditional options :if and :unless in
      the cache method.
      
          Example:
      
            <%= cache @model, if: some_condition(@model) do %>
              ...
            <%end%>
      
      This is a good feature but *cache_if* and and *cache_unless*
      are more concise and close to the standard of rails view helpers
      (ex: link_to_if and link_to_unless).
      
          Example:
      
            <%= cache_if condition, @model do %>
            ...
            <%end%>
      83223424
  2. 12 12月, 2012 6 次提交
  3. 11 12月, 2012 22 次提交
  4. 10 12月, 2012 11 次提交