1. 23 7月, 2013 1 次提交
  2. 03 1月, 2013 1 次提交
  3. 02 1月, 2013 1 次提交
  4. 09 11月, 2012 1 次提交
  5. 28 7月, 2012 1 次提交
  6. 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
  7. 24 5月, 2012 1 次提交
    • V
      Revert "Remove blank trailing comments" · 1ad0b378
      Vijay Dev 提交于
      This reverts commit fa6d921e.
      
      Reason: Not a fan of such massive changes. We usually close such changes
      if made to Rails master as a pull request. Following the same principle
      here and reverting.
      
      [ci skip]
      1ad0b378
  8. 22 5月, 2012 1 次提交
  9. 20 5月, 2012 3 次提交
    • H
      Remove blank trailing comments · fa6d921e
      Henrik Hodne 提交于
      For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace
      with the first match, and voilà! Note that the regex matches a little bit too
      much, so you probably want to `git add -i .` and go through every single diff
      to check if it actually should be changed.
      fa6d921e
    • O
      Revert typo · ba896d37
      Oscar Del Ben 提交于
      ba896d37
    • O
      Typo · fae4a263
      Oscar Del Ben 提交于
      fae4a263
  10. 11 5月, 2012 1 次提交
  11. 03 5月, 2012 1 次提交
    • Y
      allow the :converter Proc form composed_of to return nil · fa5f0375
      Yves Senn 提交于
      This makes it possible to filter invalid input values before they are passed
      into the value-object (like empty strings). This behaviour is only relevant
      if the :allow_nil options is set to true. Otherwise you will get
      the resulting NoMethodError.
      fa5f0375
  12. 02 5月, 2012 3 次提交
  13. 25 2月, 2012 1 次提交
  14. 23 10月, 2011 1 次提交
  15. 24 5月, 2011 1 次提交
  16. 19 1月, 2011 1 次提交
  17. 08 1月, 2011 4 次提交
  18. 09 11月, 2010 1 次提交
  19. 01 9月, 2010 1 次提交
  20. 14 8月, 2010 2 次提交
  21. 02 8月, 2010 1 次提交
  22. 31 7月, 2010 1 次提交
  23. 24 6月, 2010 1 次提交
  24. 16 6月, 2010 1 次提交
  25. 09 5月, 2010 1 次提交
  26. 17 3月, 2010 1 次提交
  27. 29 5月, 2009 1 次提交
  28. 12 5月, 2009 1 次提交
  29. 06 10月, 2008 1 次提交
  30. 15 9月, 2008 2 次提交
  31. 11 9月, 2008 1 次提交