aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/dirty.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixing bug on ActiveRecord::Dirty#field_changed? for nullable numeric ↵Carlos Kozuszko2009-01-161-2/+2
| | | | | | | columns, NULL gets stored in database for blank (i.e. '') values. Only integer columns were considered. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1692 state:committed]
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Change field_changed? method to handle the case where a nullable integer ↵Ben Symonds2008-12-081-2/+2
| | | | | | | | column is changed from 0 to '0' [#1530 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow for the dirty tracking to work with the aliased name of aliased ↵Rich Cavanaugh2008-09-131-1/+19
| | | | | | | attributes. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#812 state:committed]
* Dirty: treat two changes resulting in the original value as being unchanged.Tom Lea2008-08-271-1/+4
| | | | | | [#798 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Serialized attributes will now always be saved even with partial_updates ↵Tom Lea2008-08-121-1/+3
| | | | | | | turned on. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#788 state:committed]
* Merge with docrails.Pratik Naik2008-07-161-6/+6
|
* Dirty: recognize when an integer changes from zero to blank. [#433 ↵Tim Chater2008-06-271-1/+3
| | | | state:resolved]
* Enable partial updates by defaultJeremy Kemper2008-05-301-1/+1
|
* ActiveRecord::Base#reload should clear dirty attributes. [#231 state:resolved]Ryan Bates2008-05-211-0/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure nil to '' doesn't get recorded by dirty for nullable integer columns. ↵Pratik Naik2008-05-201-8/+16
| | | | [#150 state:resolved] [Jason Dew, Pratik]
* Dirty attributes aren't cleared if save fails. [#174 state:resolved]Xavier Noria2008-05-121-8/+8
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Partial updates off by defaultJeremy Kemper2008-04-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Partial updates include only unsaved attributes. Off by default; set ↵Jeremy Kemper2008-03-311-16/+36
| | | | | | YourClass.partial_updates = true to enable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dirty typecasts attribute values before comparison, if possible. Closes ↵Jeremy Kemper2008-03-291-1/+6
| | | | | | #11464 [Russell Norris, mroch] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9139 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Track changes to unsaved attributesJeremy Kemper2008-03-291-0/+117
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de