aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/locking.rb
Commit message (Collapse)AuthorAgeFilesLines
* r4664@asus: jeremy | 2006-06-19 18:55:36 -0700Jeremy Kemper2006-06-201-84/+0
| | | | | | | Use the #lock method to obtain a row lock on a single record. Simply reloads the record with :lock => true. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4663@asus: jeremy | 2006-06-19 17:23:57 -0700Jeremy Kemper2006-06-201-62/+69
| | | | | | | ActiveRecord::Locking is now ActiveRecord::Locking::Optimistic (to make way for Pessimistic.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4461 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace alias method chaining with Module#alias_method_chain. [Marcel Molina ↵Marcel Molina2006-04-291-2/+1
| | | | | | Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4312 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace Ruby's deprecated append_features in favor of included. [Marcel ↵Marcel Molina2006-04-291-2/+1
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentationDavid Heinemeier Hansson2006-03-281-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* format fix for locking [Michael Koziarski]Michael Koziarski2006-03-091-1/+1
| | | | | | | Add documentation for :dependent on associations. [robby@planetargon.com] Closes #4151 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make #save return true on success, even if locking is enabled (closes #4015) ↵David Heinemeier Hansson2006-03-011-16/+16
| | | | | | [schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* allow the 'lock_version' column to be configured with set_locking_column. ↵Michael Koziarski2006-01-141-4/+25
| | | | | | Closes #3402 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1607@asus: jeremy | 2005-07-02 23:36:52 -0700Jeremy Kemper2005-07-031-1/+1
| | | | | | | Rollback MysqlAdapter#select speedup; fix add_limit_offset git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1605@asus: jeremy | 2005-07-02 14:50:23 -0700Jeremy Kemper2005-07-031-8/+9
| | | | | | | And take it out again.. passing around the quoter doesn't make sense any more because we're calling quote_column_name, not the generic quote method. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1604@asus: jeremy | 2005-07-02 14:40:20 -0700Jeremy Kemper2005-07-031-1/+1
| | | | | | | Bring the column_quoter arg back to locking.rb. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1602@asus: jeremy | 2005-07-02 14:34:00 -0700Jeremy Kemper2005-07-031-2/+2
| | | | | | | Don't pass connection to quoted_comma_pair_list git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Finished polishing API docsDavid Heinemeier Hansson2005-02-231-22/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added automated optimistic locking if the field lock_version is present #384 ↵David Heinemeier Hansson2004-12-311-0/+57
[Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de