Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactoring attributes/types [#3348 state:resolved] | Eric Chapweske | 2009-10-17 | 5 | -117/+22 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | 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> | ||||
* | Ruby 1.9.2: Object#id is gone now | Jeremy Kemper | 2009-08-07 | 1 | -1/+1 |
| | |||||
* | Extract generic attribute method generation to AMo | Joshua Peek | 2009-08-04 | 3 | -5/+5 |
| | |||||
* | 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> | ||||
* | Modified ActiveRecord::AttributeMethods to allow classes to specify ↵ | Paul Gillard | 2009-08-04 | 3 | -4/+4 |
| | | | | | | attribute method prefixes and/or suffixes. Previously only suffixes were allowed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Track generated attribute methods in a separate module | Joshua Peek | 2009-08-02 | 3 | -5/+5 |
| | |||||
* | Start separating primary key concerns | Joshua Peek | 2009-07-30 | 1 | -0/+44 |
| | |||||
* | Move attribute_types_cached_by_default into attribute methods reading concern | Joshua Peek | 2009-07-30 | 1 | -0/+11 |
| | |||||
* | Don't need to pass attr_name to evaluate_attribute_method anymore | Joshua Peek | 2009-07-30 | 3 | -5/+5 |
| | |||||
* | Undefine id and let it automatically be generated | Joshua Peek | 2009-07-30 | 1 | -11/+2 |
| | |||||
* | Redirect method missing for primary key to read_attribute | Joshua Peek | 2009-07-30 | 1 | -2/+2 |
| | |||||
* | ditto for id= | Joshua Peek | 2009-07-30 | 1 | -5/+1 |
| | |||||
* | Don't define id_before_type_cast, just let it be generated on its own | Joshua Peek | 2009-07-30 | 1 | -5/+5 |
| | |||||
* | Move id attribute methods into their related concern | Joshua Peek | 2009-07-30 | 3 | -0/+28 |
| | |||||
* | cache_attributes is related to attribute reading | Joshua Peek | 2009-07-30 | 1 | -0/+19 |
| | |||||
* | Generate methods for all suffixes | Joshua Peek | 2009-07-30 | 1 | -3/+8 |
| | |||||
* | Concernify AR AttributeMethods | Joshua Peek | 2009-07-30 | 6 | -0/+420 |