1. 14 10月, 2015 11 次提交
  2. 13 10月, 2015 14 次提交
  3. 12 10月, 2015 8 次提交
  4. 11 10月, 2015 5 次提交
  5. 10 10月, 2015 2 次提交
    • R
      Allow multiple `root` routes in same scope level · 4db921a8
      Rafael Sales 提交于
      When an application has multiple root entries with different
      constraints, the current solution is to use `get '/'`. Example:
      
      **Currently I have to do:**
      ```ruby
      get '/', to: 'portfolio#show', constraints: ->(req) { Hostname.portfolio_site?(req.host) }
      get '/', to: 'blog#show',      constraints: ->(req) { Hostname.blog_site?(req.host) }
      root 'landing#show'
      ```
      
      **But I would like to do:**
      ```ruby
      root 'portfolio#show', constraints: ->(req) { Hostname.portfolio_site?(req.host) }
      root 'blog#show',      constraints: ->(req) { Hostname.blog_site?(req.host) }
      root 'landing#show'
      ```
      
      Other URL matchers such as `get`, `post`, etc, already allows this, so I
      think it's fair that `root` also allow it since it's just a shortcut for
      a `get` internally.
      4db921a8
    • J
      Merge pull request #21631 from RobinClowers/fix-cache-instrumentation · 0450642c
      Jeremy Daer 提交于
      Fix cache fetch instrumentation
      0450642c