1. 16 12月, 2010 1 次提交
  2. 28 11月, 2010 1 次提交
  3. 15 11月, 2010 2 次提交
  4. 09 11月, 2010 1 次提交
  5. 30 10月, 2010 1 次提交
    • J
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc... · b82fab25
      Jon Leighton 提交于
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
      b82fab25
  6. 14 8月, 2010 2 次提交
  7. 03 8月, 2010 1 次提交
  8. 17 6月, 2010 1 次提交
  9. 28 3月, 2010 1 次提交
  10. 17 1月, 2010 1 次提交
  11. 16 1月, 2010 1 次提交
  12. 11 8月, 2009 3 次提交
  13. 10 8月, 2009 2 次提交
  14. 09 8月, 2009 1 次提交
  15. 01 7月, 2009 1 次提交
  16. 23 6月, 2009 1 次提交
  17. 22 6月, 2009 1 次提交
  18. 13 6月, 2009 1 次提交
  19. 11 6月, 2009 1 次提交
  20. 19 5月, 2009 1 次提交
  21. 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
  22. 09 3月, 2009 1 次提交
  23. 07 3月, 2009 1 次提交
  24. 27 2月, 2009 1 次提交
  25. 21 12月, 2008 1 次提交
  26. 05 10月, 2008 1 次提交
  27. 24 9月, 2008 1 次提交
  28. 10 9月, 2008 1 次提交
  29. 29 8月, 2008 1 次提交
  30. 16 8月, 2008 1 次提交
  31. 26 6月, 2008 1 次提交
  32. 01 6月, 2008 1 次提交
    • R
      Add ActiveRecord::Base.sti_name that checks... · 72483c0d
      rick 提交于
      Add ActiveRecord::Base.sti_name that checks ActiveRecord::Base#store_full_sti_class? and returns either the full or demodulized name. [rick] [#114 state:resolved]
      72483c0d
  33. 25 5月, 2008 1 次提交
  34. 19 5月, 2008 1 次提交
  35. 02 5月, 2008 1 次提交