1. 03 4月, 2020 1 次提交
  2. 17 2月, 2020 1 次提交
  3. 09 9月, 2019 1 次提交
  4. 10 3月, 2019 1 次提交
  5. 09 3月, 2019 1 次提交
  6. 29 11月, 2017 1 次提交
  7. 28 10月, 2017 1 次提交
  8. 22 8月, 2017 1 次提交
  9. 21 12月, 2015 1 次提交
  10. 15 12月, 2015 2 次提交
    • M
      Use a real migration version number in docs · 97c77160
      Matthew Draper 提交于
      Even though this means more things to change when we bump after a
      release, it's more important that our examples are directly copyable.
      97c77160
    • M
      Use a deliberately-invalid migration version in all doc examples · c0af95e0
      Matthew Draper 提交于
      If we use a real version, at best that'll be an onerous update required
      for each release; at worst, it will encourage users to write new
      migrations against an older version than they're using.
      
      The other option would be to leave these bare, without any version
      specifier. But as that's just a variant spelling of "4.2", it would seem
      to raise the same concerns as above.
      c0af95e0
  11. 07 12月, 2015 1 次提交
  12. 16 9月, 2015 1 次提交
  13. 20 5月, 2015 1 次提交
  14. 13 5月, 2015 1 次提交
    • C
      [ci skip] Don’t encourage `sudo gem install` · 0080a886
      claudiob 提交于
      I think we are better off leaving `sudo` outside of the documented
      way of installing gems (`activerecord`, `actionpack`, …).
      
      We don’t want newbies to think that `sudo` is required or, even worse, than
      they actually have to type `[sudo] gem install`.
      
      In most scenarios, `sudo` is not needed to install gems, and people who do
      need it, probably already know about it.
      
      What do you think? 😁
      0080a886
  15. 02 6月, 2014 1 次提交
  16. 29 5月, 2014 1 次提交
  17. 12 5月, 2014 1 次提交
  18. 10 5月, 2014 1 次提交
  19. 09 5月, 2014 1 次提交
  20. 04 5月, 2014 1 次提交
  21. 07 5月, 2013 1 次提交
  22. 15 3月, 2013 1 次提交
  23. 01 3月, 2013 1 次提交
  24. 01 12月, 2012 1 次提交
  25. 17 9月, 2012 1 次提交
  26. 28 7月, 2012 1 次提交
  27. 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
  28. 28 5月, 2012 1 次提交
  29. 06 1月, 2012 1 次提交
  30. 24 12月, 2011 1 次提交
  31. 07 11月, 2011 1 次提交
  32. 14 8月, 2011 1 次提交
  33. 05 8月, 2011 1 次提交
  34. 29 7月, 2011 1 次提交
  35. 04 6月, 2011 1 次提交
  36. 24 5月, 2011 1 次提交
  37. 16 5月, 2011 1 次提交
  38. 11 5月, 2011 1 次提交
  39. 07 3月, 2011 1 次提交