1. 28 5月, 2015 2 次提交
  2. 23 5月, 2015 1 次提交
  3. 16 5月, 2015 1 次提交
  4. 07 5月, 2015 1 次提交
  5. 27 4月, 2015 1 次提交
  6. 22 4月, 2015 1 次提交
  7. 14 4月, 2015 1 次提交
  8. 06 4月, 2015 1 次提交
  9. 25 3月, 2015 2 次提交
  10. 21 3月, 2015 1 次提交
    • A
      Fix handling of empty X_FORWARDED_HOST header. · b49cac80
      adam 提交于
      Previously, an empty X_FORWARDED_HOST header would cause
      Actiondispatch::Http:URL.raw_host_with_port to return nil, causing
      Actiondispatch::Http:URL.host to raise a NoMethodError.
      b49cac80
  11. 15 3月, 2015 1 次提交
  12. 05 3月, 2015 1 次提交
  13. 26 2月, 2015 2 次提交
  14. 25 2月, 2015 1 次提交
  15. 24 2月, 2015 2 次提交
    • I
      Deprecate `AbstractController::Callbacks#skip_action_callback` · 3fbc6328
      Iain Beeston 提交于
      As part of #19029, in future `skip_before_action`, `skip_after_action` and
      `skip_around_action` will raise an ArgumentError if the specified
      callback does not exist. `skip_action_callback` calls all three of these
      methods and will almost certainly result in an ArgumentError. If anyone
      wants to remove all three callbacks then they can still call the three
      individual methods. Therefore let's deprecate `skip_action_callback` now
      and remove it when #19029 is merged.
      3fbc6328
    • B
      Change filter on /rails/info/routes to use an actual path regexp from rails · 321db4aa
      brainopia 提交于
      Change filter on /rails/info/routes to use an actual path regexp from rails
      and not approximate javascript version. Oniguruma supports much more
      extensive list of features than javascript regexp engine.
      
      Fixes #18402.
      321db4aa
  16. 23 2月, 2015 1 次提交
  17. 21 2月, 2015 2 次提交
  18. 16 2月, 2015 1 次提交
    • A
      Implement http_cache_forever to ActionController · 2ed39424
      Arthur Neves 提交于
      Add http_cache_forever to ActionController, so we can cache results
      forever.
      Things like static pages are a good candidate for this type of caching.
      
      This cache only controls caching headers, so it is up to the browser to
      cache those requests.
      2ed39424
  19. 13 2月, 2015 1 次提交
  20. 12 2月, 2015 1 次提交
  21. 11 2月, 2015 1 次提交
    • C
      Accept a collection in fresh_when and stale? · 050fda02
      claudiob 提交于
      The methods `fresh_when` and `stale?` from ActionController::ConditionalGet
      accept a single record as a short form for a hash. For instance
      
      ```ruby
        def show
          @article = Article.find(params[:id])
          fresh_when(@article)
        end
      ```
      
      is just a short form for:
      
      ```ruby
        def show
          @article = Article.find(params[:id])
          fresh_when(etag: @article, last_modified: @article.created_at)
        end
      ```
      
      This commit extends `fresh_when` and `stale?` to also accept a collection
      of records, so that a short form similar to the one above can be used in
      an `index` action. After this commit, the following code:
      
      ```ruby
      def index
        @article = Article.all
        fresh_when(etag: @articles, last_modified: @articles.maximum(:created_at))
      end
      ```
      
      can be simply written as:
      
      ```ruby
      def index
        @article = Article.all
        fresh_when(@articles)
      end
      ```
      050fda02
  22. 09 2月, 2015 1 次提交
    • T
      Explicitly ignored wildcard verbs from head_routes · b9c63b0a
      Terence Sun 提交于
      In match_head_routes, deleted the routes in which request.request_method was empty (matches all HTTP verbs) when responding to a HEAD request. This prevents catch-all routes (such as Racks) from intercepting the HEAD request.
      
      Fixes #18698
      b9c63b0a
  23. 01 2月, 2015 1 次提交
  24. 31 1月, 2015 1 次提交
  25. 29 1月, 2015 4 次提交
  26. 22 1月, 2015 3 次提交
  27. 10 1月, 2015 1 次提交
  28. 09 1月, 2015 3 次提交