1. 08 7月, 2019 4 次提交
  2. 07 7月, 2019 3 次提交
  3. 05 7月, 2019 2 次提交
  4. 04 7月, 2019 1 次提交
  5. 03 7月, 2019 1 次提交
  6. 01 7月, 2019 2 次提交
  7. 28 6月, 2019 2 次提交
  8. 27 6月, 2019 1 次提交
  9. 26 6月, 2019 2 次提交
  10. 25 6月, 2019 1 次提交
    • R
      Merge pull request #36210 from... · 226f83f1
      Rafael França 提交于
      Merge pull request #36210 from vishaltelangre/raise-record-invalid-when-associations-fail-to-save-due-to-uniqueness-failure
      
      Fix: ActiveRecord::RecordInvalid is not raised when an associated record fails to #save! due to uniqueness validation failure
      226f83f1
  11. 21 6月, 2019 2 次提交
  12. 20 6月, 2019 1 次提交
  13. 18 6月, 2019 1 次提交
  14. 17 6月, 2019 4 次提交
  15. 15 6月, 2019 10 次提交
  16. 14 6月, 2019 3 次提交
    • A
      Keep part when scope option has value · 85855d63
      Alberto Almagro 提交于
      When a route was defined within an optional scope, if that route didn't
      take parameters the scope was lost when using path helpers. This patch
      ensures scope is kept both when the route takes parameters or when it
      doesn't.
      
      Fixes #33219
      85855d63
    • R
      Merge pull request #36477 from albertoalmagro/alberto/button-to-default-path · b34e3a57
      Rafael França 提交于
      [ci skip] Use default path in button_to documentation
      b34e3a57
    • J
      Make ActiveRecord `ConnectionPool.connections` thread-safe. (#36473) · 05ee6624
      jeffdoering 提交于
      * Make ActiveRecord `ConnectionPool.connections` thread-safe.
      
      ConnectionPool documentation is clear on the need to synchronize
      access to @connections but also states that public methods do not
      require synchronization. Existing code exposed @connections
      directly via attr_reader. The fix uses synchronize() to lock
      @connections then returns a copy to the caller using Array.dup().
      
      Includes comments on the connections method that thread-safe access
      to the connections array does not imply thread-safety of accessing
      methods on the actual connections.
      
      Adds a test-case that modifies the pool using a supported method
      in one thread  while a second thread accesses pool.connections.
      The test fails without this patch.
      
      Fixes #36465.
      
      * Update activerecord/test/cases/connection_pool_test.rb
      
      [jeffdoering + Rafael Mendonça França]
      05ee6624