1. 21 7月, 2012 1 次提交
  2. 13 7月, 2012 2 次提交
  3. 23 6月, 2012 1 次提交
  4. 19 6月, 2012 1 次提交
    • S
      Removing composed_of from ActiveRecord. · 14fc8b34
      Steve Klabnik 提交于
      This feature adds a lot of complication to ActiveRecord for dubious
      value. Let's talk about what it does currently:
      
      class Customer < ActiveRecord::Base
        composed_of :balance, :class_name => "Money", :mapping => %w(balance amount)
      end
      
      Instead, you can do something like this:
      
          def balance
            @balance ||= Money.new(value, currency)
          end
      
          def balance=(balance)
            self[:value] = balance.value
            self[:currency] = balance.currency
            @balance = balance
          end
      
      Since that's fairly easy code to write, and doesn't need anything
      extra from the framework, if you use composed_of today, you'll
      have to add accessors/mutators like that.
      
      Closes #1436
      Closes #2084
      Closes #3807
      14fc8b34
  5. 27 4月, 2012 1 次提交
  6. 31 1月, 2012 1 次提交
  7. 17 1月, 2012 1 次提交
  8. 24 12月, 2011 1 次提交
  9. 04 11月, 2011 2 次提交
  10. 03 11月, 2011 1 次提交
    • J
      Fix #3271. · d4861035
      Jon Leighton 提交于
      Building the conditions of a nested through association could
      potentially modify the conditions of the through and/or source
      association.
      
      This is a Bad Thing.
      d4861035
  11. 06 10月, 2011 1 次提交
  12. 30 9月, 2011 1 次提交
  13. 26 9月, 2011 1 次提交
  14. 01 7月, 2011 1 次提交
  15. 07 6月, 2011 1 次提交
  16. 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
  17. 25 5月, 2011 1 次提交
  18. 23 5月, 2011 1 次提交
  19. 17 3月, 2011 1 次提交
  20. 11 3月, 2011 2 次提交
  21. 06 3月, 2011 1 次提交
  22. 08 1月, 2011 1 次提交
  23. 04 1月, 2011 2 次提交
  24. 01 1月, 2011 1 次提交
  25. 24 12月, 2010 1 次提交
  26. 21 12月, 2010 1 次提交
  27. 16 12月, 2010 1 次提交
  28. 03 12月, 2010 1 次提交
  29. 02 11月, 2010 1 次提交
  30. 31 10月, 2010 1 次提交
  31. 20 10月, 2010 1 次提交
  32. 14 8月, 2010 2 次提交
  33. 23 6月, 2010 1 次提交
  34. 16 3月, 2010 1 次提交
  35. 09 1月, 2010 1 次提交