Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make sure timestamp is properly referenced | Blake Smith | 2010-05-11 | 1 | -1/+1 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | eliminate alias_method_chain from ActiveRecord | wycats | 2010-05-09 | 1 | -50/+50 | |
| | ||||||
* | Dirty datetime attributes should be aware of time zone info [#3658 ↵ | Kristopher Murata | 2010-04-08 | 1 | -0/+6 | |
| | | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+2 | |
| | ||||||
* | fisting uninitialized ivar warnings. [#4198 state:resolved] | Aaron Patterson | 2010-03-16 | 1 | -8/+8 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | clean up more warnings, remove unnecessary methods, fix eval line numbers. ↵ | Aaron Patterson | 2010-03-16 | 1 | -1/+1 | |
| | | | | | | [#4193 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Object#tap is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -2/+0 | |
| | ||||||
* | I added this feature so that a Map of changed fields could be retrieved | Josh Sharpe | 2009-08-31 | 1 | -2/+9 | |
| | | | | | | | | | | | | | | | | | | | | 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 | -114/+9 | |
| | ||||||
* | AMo overrides alias_attribute and manages aliasing all known attribute ↵ | Joshua Peek | 2009-08-10 | 1 | -17/+0 | |
| | | | | method matchers | |||||
* | Serialized attributes should only be saved with partial_updates when the ↵ | Mike Breen | 2009-08-09 | 1 | -1/+1 | |
| | | | | | | serialized attribute is present [#2397 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Added reset_attribute! method to ActiveRecord::AttributeMethods::Dirty which ↵ | Paul Gillard | 2009-08-04 | 1 | -12/+29 | |
| | | | | | | will reset an attribute to its original value should it have changed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Concernify AR AttributeMethods | Joshua Peek | 2009-07-30 | 1 | -0/+187 | |