aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/dirty.rb
Commit message (Collapse)AuthorAgeFilesLines
* Restore changed_attributes method in ActiveModel::Dirty and loosen ↵Sam Pohlenz2010-04-011-12/+12
| | | | | | | | expectation on including class' initialize method. [#4308 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* adds a few requires in active_model/dirty.rbXavier Noria2010-03-281-0/+3
| | | | [#4284 state:committed]
* Fix unstated dep on HWIAJeremy Kemper2010-03-271-0/+2
|
* Fix tests added in previous commit.José Valim2010-03-271-0/+5
|
* ActiveModel::Dirty#changes should return a HashWithIndifferentAccess [#4157 ↵Jacob Atzen2010-03-271-1/+1
| | | | | | | | state:resolved] Keep the Rails style of inject Signed-off-by: José Valim <jose.valim@gmail.com>
* fisting uninitialized ivar warnings. [#4198 state:resolved]Aaron Patterson2010-03-161-10/+7
| | | | Signed-off-by: wycats <wycats@gmail.com>
* clean up more warnings, remove unnecessary methods, fix eval line numbers. ↵Aaron Patterson2010-03-161-9/+2
| | | | | | [#4193 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* Merge docrailsPratik Naik2010-01-171-1/+39
|
* I added this feature so that a Map of changed fields could be retrievedJosh Sharpe2009-08-311-0/+14
| | | | | | | | | | | | | | | | | | | | after a model had been saved. This is useful in the after_save callback when you need to know what fields changed. At present there is no way to do this other than have code in the before_save callback that takes a copy of the changes Map, which I thought was a bit messy. Example. person = Person.find_by_name('bob') person.name = 'robert' person.changes # => {'name' => ['bob, 'robert']} person.save person.changes # => {} person.previous_changes # => {'name' => ['bob, 'robert']} person.reload person.previous_changes # => {} Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Extract common dirty tracking methods in AMoJoshua Peek2009-08-101-0/+112