1. 18 1月, 2013 1 次提交
  2. 29 11月, 2012 2 次提交
  3. 10 11月, 2012 1 次提交
  4. 17 9月, 2012 2 次提交
  5. 11 8月, 2012 1 次提交
    • J
      Remove the dependent_restrict_raises option. · 5ad79989
      Jon Leighton 提交于
      It's not really a good idea to have this as a global config option. We
      should allow people to specify the behaviour per association.
      
      There will now be two new values:
      
      * :dependent => :restrict_with_exception implements the current
        behaviour of :restrict. :restrict itself is deprecated in favour of
        :restrict_with_exception.
      * :dependent => :restrict_with_error implements the new behaviour - it
        adds an error to the owner if there are dependent records present
      
      See #4727 for the original discussion of this.
      5ad79989
  6. 08 8月, 2012 1 次提交
  7. 02 8月, 2012 1 次提交
  8. 28 7月, 2012 1 次提交
  9. 27 7月, 2012 1 次提交
    • J
      ActiveRecord::Base.all returns a Relation. · 6a81ccd6
      Jon Leighton 提交于
      Previously it returned an Array.
      
      If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This
      is more explicit.
      
      In most cases this should not break existing code, since
      Relations use method_missing to delegate unknown methods to #to_a
      anyway.
      6a81ccd6
  10. 27 4月, 2012 4 次提交
  11. 06 3月, 2012 1 次提交
  12. 02 2月, 2012 3 次提交
  13. 01 2月, 2012 1 次提交
  14. 31 1月, 2012 1 次提交
  15. 29 1月, 2012 1 次提交
  16. 05 7月, 2011 1 次提交
  17. 01 7月, 2011 1 次提交
  18. 07 6月, 2011 1 次提交
  19. 05 6月, 2011 1 次提交
    • J
      Refactor Active Record test connection setup. Please see the... · 253bb6b9
      Jon Leighton 提交于
      Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
      253bb6b9
  20. 25 5月, 2011 1 次提交
  21. 18 5月, 2011 2 次提交
  22. 13 5月, 2011 1 次提交
  23. 11 5月, 2011 2 次提交
  24. 13 4月, 2011 1 次提交
  25. 18 2月, 2011 1 次提交
  26. 14 2月, 2011 1 次提交
  27. 30 1月, 2011 1 次提交
  28. 12 1月, 2011 4 次提交