1. 29 3月, 2018 1 次提交
  2. 24 10月, 2017 1 次提交
  3. 22 8月, 2017 1 次提交
  4. 30 7月, 2017 1 次提交
  5. 20 7月, 2017 1 次提交
  6. 02 7月, 2017 1 次提交
  7. 01 7月, 2017 1 次提交
  8. 07 2月, 2017 1 次提交
  9. 07 8月, 2016 1 次提交
  10. 10 9月, 2015 1 次提交
  11. 18 3月, 2015 1 次提交
  12. 18 10月, 2013 1 次提交
  13. 31 5月, 2013 1 次提交
  14. 03 1月, 2013 1 次提交
  15. 10 11月, 2012 1 次提交
  16. 19 1月, 2012 1 次提交
    • O
      Add ActiveRecord::Base#with_lock · 7afbc89c
      Olek Janiszewski 提交于
      Add a `with_lock` method to ActiveRecord objects, which starts
      a transaction, locks the object (pessimistically) and yields to the block.
      The method takes one (optional) parameter and passes it to `lock!`.
      
      Before:
      
          class Order < ActiveRecord::Base
            def cancel!
              transaction do
                lock!
                # ... cancelling logic
              end
            end
          end
      
      After:
      
          class Order < ActiveRecord::Base
            def cancel!
              with_lock do
                # ... cancelling logic
              end
            end
          end
      7afbc89c
  17. 19 5月, 2011 1 次提交
    • J
      Closes GH #1032 · 3b18e900
      John Paul Ashenfelter 提交于
      Fixed what looks like minor cut/paste error in documentation for ActiveRecord::Locking:Pessimistic
      3b18e900
  18. 18 5月, 2011 1 次提交
  19. 12 3月, 2011 1 次提交
  20. 15 2月, 2011 1 次提交
  21. 09 11月, 2010 1 次提交
  22. 01 9月, 2010 1 次提交
  23. 12 9月, 2009 1 次提交
  24. 02 5月, 2008 1 次提交
  25. 06 9月, 2006 2 次提交
  26. 20 6月, 2006 1 次提交