1. 26 8月, 2015 2 次提交
  2. 25 8月, 2015 3 次提交
  3. 24 8月, 2015 3 次提交
  4. 18 8月, 2015 2 次提交
  5. 12 8月, 2015 1 次提交
  6. 08 8月, 2015 3 次提交
  7. 07 8月, 2015 1 次提交
  8. 03 8月, 2015 2 次提交
  9. 02 8月, 2015 1 次提交
  10. 20 7月, 2015 1 次提交
    • R
      Fix state being carried over from previous transaction · 12b0b26d
      Roque Pinel 提交于
      This clears the transaction record state when the transaction finishes
      with a `:committed` status.
      
      Considering the following example where `name` is a required attribute.
      Before we had `new_record?` returning `true` for a persisted record:
      
      ```ruby
        author = Author.create! name: 'foo'
        author.name = nil
        author.save        # => false
        author.new_record? # => true
      ```
      12b0b26d
  11. 19 7月, 2015 1 次提交
    • R
      Fix exception overwritten for parameters fetch method · 780af27b
      Roque Pinel 提交于
      When executing an `ActionController::Parameters#fetch` with a block
      that raises a `KeyError` the raised `KeyError` will be rescued and
      converted to an `ActionController::ParameterMissing` exception,
      covering up the original exception.
      
      [Jonas Schubert Erlandsson & Roque Pinel]
      780af27b
  12. 18 7月, 2015 2 次提交
    • P
      Stop using deprecated `render :text` in test · 8cb8ce98
      Prem Sichanugrist 提交于
      This will silence deprecation warnings.
      
      Most of the test can be changed from `render :text` to render `:plain`
      or `render :body` right away. However, there are some tests that needed
      to be fixed by hand as they actually assert the default Content-Type
      returned from `render :body`.
      8cb8ce98
    • P
      Add deprecation warning for `render :text` · 6790228b
      Prem Sichanugrist 提交于
      We've started on discouraging the usage of `render :text` in #12374.
      This is a follow-up commit to make sure that we print out the
      deprecation warning.
      6790228b
  13. 17 7月, 2015 1 次提交
  14. 15 7月, 2015 1 次提交
    • P
      Make AC::Parameters not inherited from Hash · 14a3bd52
      Prem Sichanugrist 提交于
      This is another take at #14384 as we decided to wait until `master` is
      targeting Rails 5.0. This commit is implementation-complete, as it
      guarantees that all the public methods on the hash-inherited Parameters
      are still working (based on test case). We can decide to follow-up later
      if we want to remove some methods out from Parameters.
      14a3bd52
  15. 14 7月, 2015 4 次提交
  16. 10 7月, 2015 2 次提交
  17. 09 7月, 2015 6 次提交
  18. 08 7月, 2015 1 次提交
    • A
      pass variants in rather than mutating the request. · 59a9068c
      Aaron Patterson 提交于
      Variants are typically set in the controller based on some attribute of
      the request that the browser sent.  We should make our tests more in
      line with reality by doing the same and not mutating the request object.
      59a9068c
  19. 05 7月, 2015 1 次提交
  20. 21 6月, 2015 1 次提交
    • D
      Override default_render's behavior with a block · 6fda6c37
      Dave Copeland 提交于
      In 0de4a23d the behavior when there is a missing template was changed to
      not raise an error, but instead head :no_content.  This is a breaking
      change and some gems rely on this happening.
      
      To allow gems and other code to work around this, allow
      `default_render` to take a block which, if provided, will
      execute the contents of that block instead of doing the `head :no_content`.
      6fda6c37
  21. 16 6月, 2015 1 次提交