Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove require AS::Concern from places where is already in | Santiago Pastorino | 2010-12-19 | 1 | -1/+0 |
| | |||||
* | Perf: refactor methods using inject when not need in activemodel. | Emilio Tagua | 2010-09-22 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -18/+18 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Remove or fix non-working examples and add a few tests to Dirty [#5185 ↵ | Tore Darell | 2010-08-03 | 1 | -7/+2 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | expanding on the will_change! method in documentation | Neeraj Singh | 2010-07-29 | 1 | -1/+4 |
| | |||||
* | Changes call backs to callbacks. | Rizwan Reza | 2010-06-15 | 1 | -1/+1 |
| | |||||
* | Minor changes to active_model/callbacks.rb and dirty.rb | Rizwan Reza | 2010-06-14 | 1 | -6/+11 |
| | |||||
* | a cloned object no longer mimics changed flags from creator , plus a test ↵ | Federico Brubacher | 2010-05-16 | 1 | -4/+5 |
| | | | | | | case [#4614 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Restore changed_attributes method in ActiveModel::Dirty and loosen ↵ | Sam Pohlenz | 2010-04-01 | 1 | -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.rb | Xavier Noria | 2010-03-28 | 1 | -0/+3 |
| | | | | [#4284 state:committed] | ||||
* | Fix unstated dep on HWIA | Jeremy Kemper | 2010-03-27 | 1 | -0/+2 |
| | |||||
* | Fix tests added in previous commit. | José Valim | 2010-03-27 | 1 | -0/+5 |
| | |||||
* | ActiveModel::Dirty#changes should return a HashWithIndifferentAccess [#4157 ↵ | Jacob Atzen | 2010-03-27 | 1 | -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 Patterson | 2010-03-16 | 1 | -10/+7 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | clean up more warnings, remove unnecessary methods, fix eval line numbers. ↵ | Aaron Patterson | 2010-03-16 | 1 | -9/+2 |
| | | | | | | [#4193 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -1/+39 |
| | |||||
* | I added this feature so that a Map of changed fields could be retrieved | Josh Sharpe | 2009-08-31 | 1 | -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 AMo | Joshua Peek | 2009-08-10 | 1 | -0/+112 |