“53006464a81d65e3b030cc757bf1f0fc20ca3d42”上不存在“projects/git@gitcode.net:t7hihi/mirrors-settings.git”
  1. 11 4月, 2010 1 次提交
  2. 17 3月, 2010 1 次提交
  3. 13 3月, 2010 1 次提交
  4. 01 1月, 2010 1 次提交
  5. 13 12月, 2009 1 次提交
  6. 03 12月, 2009 1 次提交
    • M
      Fix instance_eval calls to association proxies · 49e943c4
      Mat Brown 提交于
      In the current stable, ActiveRecord::Associations::AssociationProxy#method_missing calls yield() if a block is given, causing the block to always be evaluated in its calling context. However, in the case of instance_eval, correct behavior requires that the block be passed directly to the @target, rather than being evaluated inside a different block. Incidentally, this also simplifies the code slightly.
      
      [#3412 state:committed]
      Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
      49e943c4
  7. 14 11月, 2009 3 次提交
  8. 19 8月, 2009 1 次提交
  9. 05 5月, 2009 1 次提交
    • M
      Providing support for :inverse_of as an option to associations. · ccea9838
      Murray Steele 提交于
      You can now add an :inverse_of option to has_one, has_many and belongs_to associations.  This is best described with an example:
      
      class Man < ActiveRecord::Base
        has_one :face, :inverse_of => :man
      end
      
      class Face < ActiveRecord::Base
        belongs_to :man, :inverse_of => :face
      end
      
      m = Man.first
      f = m.face
      
      Without :inverse_of m and f.man would be different instances of the same object (f.man being pulled from the database again).  With these new :inverse_of options m and f.man are the same in memory instance.
      
      Currently :inverse_of supports has_one and has_many (but not the :through variants) associations.  It also supplies inverse support for belongs_to associations where the inverse is a has_one and it's not a polymorphic.
      Signed-off-by: NMurray Steele <muz@h-lame.com>
      Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
      ccea9838
  10. 20 4月, 2009 1 次提交
  11. 01 1月, 2009 1 次提交
  12. 27 12月, 2008 1 次提交
  13. 05 12月, 2008 1 次提交
  14. 02 12月, 2008 1 次提交
  15. 14 10月, 2008 1 次提交
  16. 05 10月, 2008 1 次提交
  17. 04 9月, 2008 1 次提交
  18. 28 8月, 2008 1 次提交
  19. 24 8月, 2008 1 次提交
  20. 18 8月, 2008 3 次提交
  21. 17 8月, 2008 1 次提交
  22. 27 6月, 2008 1 次提交
  23. 26 6月, 2008 1 次提交
  24. 21 5月, 2008 1 次提交
  25. 20 5月, 2008 1 次提交
  26. 08 5月, 2008 1 次提交
  27. 02 5月, 2008 1 次提交
  28. 06 4月, 2008 1 次提交
  29. 05 4月, 2008 1 次提交
  30. 24 3月, 2008 1 次提交
  31. 01 3月, 2008 1 次提交
  32. 16 2月, 2008 1 次提交
  33. 14 2月, 2008 1 次提交
  34. 13 2月, 2008 1 次提交
  35. 26 1月, 2008 1 次提交
  36. 10 12月, 2007 1 次提交