1. 22 12月, 2012 1 次提交
  2. 20 12月, 2012 1 次提交
    • A
      Integrate Journey into Action Dispatch · 56fee39c
      Andrew White 提交于
      Move the Journey code underneath the ActionDispatch namespace so
      that we don't pollute the global namespace with names that may
      be used for models.
      
      Fixes rails/journey#49.
      56fee39c
  3. 19 12月, 2012 1 次提交
    • N
      Remove obfuscation support from mail_to helper · cf9d9450
      Nick Reed 提交于
      Removes support for :encode, :replace_at, and :replace_dot
      options from the mail_to helper. Support for these options
      has been extracted to the 'actionview-encoded_mail_to' gem.
      cf9d9450
  4. 18 12月, 2012 1 次提交
  5. 16 12月, 2012 1 次提交
    • K
      Refactoring the token_and_options method to fix bugs · f71cca9e
      Kurtis Rainbolt-Greene 提交于
      Adding a test for the equal trun bug
      
      Adding a test for the after equal trunc bug
      
      Adding a test for the slash bug
      
      Adding a test for the slash quote bug
      
      Adding a helper method for creating a sample request object with token
      
      Writing a method to create params array from raw params
      
      Writing a method to rewrite param values in the params
      
      Writing a method to get the token params from an authorization value
      
      Refactoring the token_and_options method to fix bugs
      
      Removing unnessecary test
      
      A constant for this shared regex seemed appropriate
      
      Wanting to split up this logic
      
      Adding small documentation pieces
      f71cca9e
  6. 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
  7. 14 12月, 2012 1 次提交
  8. 12 12月, 2012 1 次提交
    • M
      Fix rewinding in ActionDispatch::Request#raw_post · 991601ff
      Matt Venables 提交于
      If env['RAW_POST_DATA'] is nil, #raw_post will attempt to set it to
      the result of #body (which will return env['rack.input'] if
      env['RAW_POST_DATA'] is nil). #raw_post will then attempt to rewind
      the result of another call to #body. Since env['RAW_POST_DATA'] has
      already been set, the result of #body is not env['rack.input'] anymore.
      This causes env['rack.input'] to never be rewound.
      991601ff
  9. 11 12月, 2012 1 次提交
  10. 08 12月, 2012 5 次提交
  11. 07 12月, 2012 2 次提交
  12. 05 12月, 2012 2 次提交
  13. 04 12月, 2012 2 次提交
  14. 02 12月, 2012 1 次提交
  15. 01 12月, 2012 1 次提交
  16. 29 11月, 2012 1 次提交
  17. 28 11月, 2012 1 次提交
  18. 27 11月, 2012 2 次提交
  19. 26 11月, 2012 3 次提交
    • A
      Improve clarity of routing tests · be2a3b0a
      Andrew White 提交于
      Move the routes for each test inside the test method so that
      it's easier to see which routes are applicable to which test.
      
      To ensure that each test wasn't invalidated the changes were
      done by first removing all of the routes, ensuring that all
      of the tests failed and then adding the routes back to each
      test one by one. One test for `assert_recognizes` was
      removed as it wasn't actually testing the defined routes and
      is now tested more thoroughly in routing_assertions_test.rb.
      
      One downside is that the test suite takes about 1s longer
      due to having to using `method_missing` for handling the url
      helpers as using `include url_helpers` isn't isolated
      for each test.
      be2a3b0a
    • D
      Add explicit opt-out for fragment cache digesting · 7fb8c670
      Drew Ulmer 提交于
      This add support for sending an explicit opt-out of the "Russian-doll"
      cache digest feature on a case-by-case basis. This is useful when cache-
      expiration needs to be performed manually and it would be otherwise
      difficult to know the exact name of a digested cache key.
      
      More information: https://github.com/rails/cache_digests/pull/16
      7fb8c670
    • R
      assert_template: validating option keys · 3f2c011d
      Roberto Soares 提交于
      3f2c011d
  20. 24 11月, 2012 2 次提交
  21. 22 11月, 2012 1 次提交
    • G
      Allow setting a symbol as path in scope on routes · 0d3a9e8a
      Guillermo Iguaran 提交于
      Was surprising found that this example doesn't work:
      
        scope :api do
          resources :users
        end
      
      and the right form to use it is:
      
        scope 'api' do
          resources :users
        end
      
      I think this should work similary as `namespace` where both are allowed.
      These two are equivalent:
      
        namespace :api do
          resources :users
        end
      
        namespace 'api' do
          resources :user
        end
      0d3a9e8a
  22. 20 11月, 2012 4 次提交
  23. 16 11月, 2012 3 次提交
  24. 15 11月, 2012 1 次提交