1. 13 10月, 2014 1 次提交
    • A
      Autosave callbacks shouldn't be `after_save` · 719d52db
      Agis- 提交于
      068f092c registered autosave callbacks
      as `after_save` callbacks. This caused the regression described in #17209.
      
      Autosave callbacks should be registered as `after_update` and
      `after_create` callbacks, just like before.
      
      This is a partial revert of 068f092c.
      
      Fixes #17209.
      719d52db
  2. 06 10月, 2014 1 次提交
  3. 27 9月, 2014 1 次提交
  4. 23 9月, 2014 3 次提交
  5. 20 9月, 2014 1 次提交
  6. 19 9月, 2014 1 次提交
  7. 17 9月, 2014 3 次提交
  8. 15 9月, 2014 1 次提交
  9. 11 9月, 2014 4 次提交
  10. 09 9月, 2014 2 次提交
    • Y
      introduce `connection.supports_views?` and basic view tests. · ae9412e8
      Yves Senn 提交于
      `AbstractAdapter#supports_views?` defaults to `false` so we have to turn it on
      in adapter subclasses. Currently the flag only controls test execution.
      
      /cc @yahonda
      ae9412e8
    • Y
      Allow included modules to override association methods. · d5580b91
      Yves Senn 提交于
      Closes #16684.
      
      This is achieved by always generating `GeneratedAssociationMethods` when
      `ActiveRecord::Base` is subclassed. When some of the included modules
      of `ActiveRecord::Base` were reordered this behavior was broken as
      `Core#initialize_generated_modules` was no longer called. Meaning that
      the module was generated on first access.
      d5580b91
  11. 06 9月, 2014 1 次提交
  12. 05 9月, 2014 1 次提交
  13. 04 9月, 2014 1 次提交
  14. 31 8月, 2014 1 次提交
    • J
      MySQL: set connection collation along with the charset · d5ad2037
      Jeremy Kemper 提交于
      Sets the connection collation to the database collation configured
      in database.yml. Otherwise, `SET NAMES utf8mb4` will use the default
      collation for that charset (utf8mb4_general_ci) when you may have chosen
      a different collation, like utf8mb4_unicode_ci.
      
      This only applies to literal string comparisons, not column values, so
      it is unlikely to affect you.
      d5ad2037
  15. 27 8月, 2014 1 次提交
  16. 25 8月, 2014 1 次提交
  17. 24 8月, 2014 1 次提交
  18. 20 8月, 2014 1 次提交
  19. 19 8月, 2014 3 次提交
  20. 17 8月, 2014 1 次提交
  21. 16 8月, 2014 1 次提交
    • A
      Fix regression on after_commit in nested transactions. · 2e90fe73
      Arthur Neves 提交于
      after_commit should not run in nested transactions, however they should
      run once the outermost transaction gets committed. This patch fixes the
      problem copying the records from the Savepoint to its parent. So the
      RealTransaction will have all records that needs to run callbacks on it.
      
      [fixes #16425]
      2e90fe73
  22. 13 8月, 2014 1 次提交
    • Y
      `index_exists?` with `:name` checks specified columns. · ecfce561
      Yves Senn 提交于
      [Yves Senn & Matthew Draper]
      
      The column check was embodied in the defaul index name.
      If the :name option was used, the specified columns were not verified at all.
      
      Given:
      
      ```
      assert connection.index_exists?(table_name, :foo_id, :name => :index_testings_on_yo_momma)
      ```
      
      That index could have been defined on any field, not necessarily on `:foo_id`.
      ecfce561
  23. 11 8月, 2014 2 次提交
  24. 07 8月, 2014 1 次提交
  25. 06 8月, 2014 2 次提交
  26. 02 8月, 2014 1 次提交
    • E
      Deprecate source_macro · 01c80a12
      eileencodes 提交于
      `source_macro` is no longer used in any ActiveRecord code. I've
      chosen to deprecate it because it was not marked as nodoc and may
      be in use outside of rails source.
      01c80a12
  27. 31 7月, 2014 1 次提交
  28. 28 7月, 2014 1 次提交