1. 07 2月, 2005 3 次提交
  2. 26 1月, 2005 1 次提交
  3. 25 1月, 2005 1 次提交
    • D
      Added the option of supplying an array of ids and attributes to Base#update,... · efa81dad
      David Heinemeier Hansson 提交于
      Added the option of supplying an array of ids and attributes to Base#update, so that multiple records can be updated at once (inspired by #526/Duane Johnson). Added the option of supplying an array of attributes to Base#create, so that multiple records can be created at once. Added that Base#delete and Base#destroy both can take an array of ids to delete/destroy #336. Added that has_many association build and create methods can take arrays of record data like Base#create and Base#build to build/create multiple records at once.
      
      git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
      efa81dad
  4. 24 1月, 2005 7 次提交
  5. 23 1月, 2005 1 次提交
  6. 20 1月, 2005 1 次提交
  7. 18 1月, 2005 1 次提交
  8. 16 1月, 2005 1 次提交
    • D
      Added support for associating unsaved objects #402 [Tim Bates] · 823554ea
      David Heinemeier Hansson 提交于
      Added replace to associations, so you can do project.manager.replace(new_manager) or project.milestones.replace(new_milestones) #402 [Tim Bates]
      Added build and create methods to has_one and belongs_to associations, so you can now do project.manager.build(attributes) #402 [Tim Bates]
      Fixed that Base#== wouldn't work for multiple references to the same unsaved object #402 [Tim Bates]
      Added that if a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns false, all the later callbacks are cancelled. Callbacks are generally run in the order they are defined, with the exception of callbacks defined as methods on the model, which are called last. #402 [Tim Bates]
      
      git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
      823554ea
  9. 13 1月, 2005 1 次提交
  10. 11 1月, 2005 2 次提交
  11. 06 1月, 2005 2 次提交
  12. 04 1月, 2005 1 次提交
  13. 03 1月, 2005 1 次提交
  14. 02 1月, 2005 5 次提交
  15. 01 1月, 2005 1 次提交
  16. 30 12月, 2004 1 次提交
  17. 29 12月, 2004 2 次提交
  18. 22 12月, 2004 1 次提交
  19. 20 12月, 2004 6 次提交
  20. 19 12月, 2004 1 次提交