Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Performance: cache/reload arel relation when possible to speed up things. | Emilio Tagua | 2009-07-21 | 1 | -2/+2 |
| | |||||
* | Merge commit 'rails/master' | Emilio Tagua | 2009-06-02 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record.rb | ||||
| * | Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵ | Joshua Peek | 2009-05-28 | 1 | -1/+1 |
| | | | | | | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern. | ||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-05-12 | 1 | -8/+8 |
|\| | |||||
| * | Use DependencyModule for included hooks in ActiveRecord | Bryan Helmkamp | 2009-05-11 | 1 | -8/+8 |
| | | |||||
* | | Refactor to use arel_table method, and also use the same method name for ↵ | Emilio Tagua | 2009-05-02 | 1 | -6/+6 |
| | | | | | | | | instance and class methods. | ||||
* | | Removed ARel table assignment | Emilio Tagua | 2009-05-02 | 1 | -1/+0 |
| | | |||||
* | | Added arel_attributes_values methods, refactored locking and AR#update to ↵ | Emilio Tagua | 2009-04-30 | 1 | -8/+1 |
| | | | | | | | | use this method | ||||
* | | Refactored locking update | Emilio Tagua | 2009-04-24 | 1 | -7/+9 |
| | | |||||
* | | Changed locking to use Arel. Arel updated | Emilio Tagua | 2009-04-24 | 1 | -14/+19 |
|/ | |||||
* | Ensure Model#destroy respects optimistic locking [#1966 state:resolved] | Curtis Hawthorne | 2009-03-09 | 1 | -0/+33 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Partial updates don't update lock_version if nothing changed. [#426 ↵ | Daniel Morrison | 2008-06-22 | 1 | -0/+1 |
| | | | | state:resolved] | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -7/+7 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fixed that pessimistic locking you reference the quoted table name (Josh ↵ | David Heinemeier Hansson | 2008-04-30 | 1 | -1/+1 |
| | | | | Susser) [#67 state:resolved] | ||||
* | Partial updates include only unsaved attributes. Off by default; set ↵ | Jeremy Kemper | 2008-03-31 | 1 | -3/+6 |
| | | | | | | YourClass.partial_updates = true to enable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ensure optimistic locking handles nil #lock_version values properly. Closes ↵ | Rick Olson | 2007-12-15 | 1 | -1/+1 |
| | | | | | | #10510 [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | attr_readonly behaves well with optimistic locking. Closes #10188. | Jeremy Kemper | 2007-11-16 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Optimistic locking: revert the lock version when an update fails. Closes ↵ | Jeremy Kemper | 2007-05-25 | 1 | -16/+23 |
| | | | | | | #7840. Also return the number of affected rows instead of true. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6843 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Provide brief introduction to what optimistic locking is. Closes #8097. ↵ | Marcel Molina | 2007-05-06 | 1 | -0/+10 |
| | | | | | | [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Consistent public/protected/private visibility for chained methods. Closes ↵ | Jeremy Kemper | 2007-03-13 | 1 | -28/+28 |
| | | | | | | #7813. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6396 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Made increment_counter/decrement_counter play nicely with optimistic ↵ | Jamis Buck | 2007-02-07 | 1 | -2/+23 |
| | | | | | | locking, and added a more general update_counters method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Don't create instance writer methods for class attributes. Closes #7401 [Rick] | Rick Olson | 2007-01-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Backed out of new_record? to new? transformation as it would screw up ↵ | David Heinemeier Hansson | 2006-09-05 | 1 | -1/+1 |
| | | | | | | existing models that did boolean calls on "new" attributes [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Deprecated ActiveRecord::Base.new_record? in favor of ↵ | David Heinemeier Hansson | 2006-09-05 | 1 | -1/+1 |
| | | | | | | ActiveRecord::Base.new? (old version still works until Rails 2.0) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5017 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Rename quote to quote_value so the name can be used in AR models. #3628 [Koz] | Michael Koziarski | 2006-09-04 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Optimistic locking: gracefully handle nil versions, treat as zero. Closes #5908. | Jeremy Kemper | 2006-09-04 | 1 | -0/+17 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | r4664@asus: jeremy | 2006-06-19 18:55:36 -0700 | Jeremy Kemper | 2006-06-20 | 2 | -0/+166 |
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 |