Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PG column consults oid types when typecasting | Aaron Patterson | 2012-02-10 | 1 | -0/+6 |
| | |||||
* | adding a comment for myself | Aaron Patterson | 2012-02-06 | 1 | -8/+8 |
| | |||||
* | delegate attribute typecasting to the column | Aaron Patterson | 2012-02-06 | 1 | -16/+2 |
| | |||||
* | Split out most of the AR::Base code into separate modules :cake: | Jon Leighton | 2011-12-15 | 1 | -0/+12 |
| | |||||
* | consistency | Jon Leighton | 2011-11-30 | 1 | -2/+2 |
| | |||||
* | omg computer science! | Jon Leighton | 2011-11-30 | 1 | -4/+10 |
| | | | | | | | Implement a mini state machine for serialized attributes. This means we do not have to deserialize the values upon initialization, which means that if we never actually access the attribute, we never have to deserialize it. | ||||
* | Use inheritance to avoid special-case code for the 'id' method | Jon Leighton | 2011-11-30 | 1 | -4/+0 |
| | |||||
* | Speed up attribute invocation by checking if both name and calls are compilable. | José Valim | 2011-11-14 | 1 | -1/+1 |
| | |||||
* | Revert "Raise error on unknown primary key." | Jon Leighton | 2011-10-05 | 1 | -1/+1 |
| | | | | This reverts commit ee2be435b1e5c0e94a4ee93a1a310e0471a77d07. | ||||
* | Raise error on unknown primary key. | Jon Leighton | 2011-10-05 | 1 | -1/+1 |
| | | | | | If we don't have a primary key when we ask for it, it's better to fail fast. Fixes GH #2307. | ||||
* | Raise error when using write_attribute with a non-existent attribute. | Jon Leighton | 2011-09-13 | 1 | -3/+7 |
| | | | | | | | | | Previously we would just silently write the attribute. This can lead to subtle bugs (for example, see the change in AutosaveAssociation where a through association would wrongly gain an attribute. Also, ensuring that we never gain any new attributes after initialization will allow me to reduce our dependence on method_missing. | ||||
* | Alias id= if necessary, rather than relying on method_missing | Jon Leighton | 2011-09-13 | 1 | -0/+4 |
| | |||||
* | Avoid define_method if possible. | José Valim | 2011-04-19 | 1 | -1/+1 |
| | |||||
* | Added new #update_column method. | Sebastian Martinez | 2011-03-27 | 1 | -0/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | use class_eval with a string when it's possible | Santiago Pastorino | 2011-03-22 | 1 | -2/+6 |
| | |||||
* | Allow to read and write AR attributes with non valid identifiers | Santiago Pastorino | 2011-03-22 | 1 | -1/+3 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | ensuring that description does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -2/+2 |
| | |||||
* | Revert "Refactoring attributes/types" [#3348 state:open] | Pratik Naik | 2010-01-22 | 1 | -2/+7 |
| | | | | | | | | | | | | | | | | | This reverts commit f936a1f100e75082081e782e5cceb272885c2df7. Conflicts: activerecord/lib/active_record.rb activerecord/lib/active_record/base.rb Revert "Fixed: #without_typecast should only disable typecasting on the duplicated attributes" [#3387 state:open] This reverts commit 2831996483c6a045f1f38d8030256eb58d9771c3. Reason : It's not generating attribute methods properly, making object.column 5x slower. | ||||
* | Refactoring attributes/types [#3348 state:resolved] | Eric Chapweske | 2009-10-17 | 1 | -7/+2 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Extract generic attribute method generation to AMo | Joshua Peek | 2009-08-04 | 1 | -1/+1 |
| | |||||
* | Modified ActiveRecord::AttributeMethods to allow classes to specify ↵ | Paul Gillard | 2009-08-04 | 1 | -1/+1 |
| | | | | | | 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 | 1 | -1/+1 |
| | |||||
* | Don't need to pass attr_name to evaluate_attribute_method anymore | Joshua Peek | 2009-07-30 | 1 | -1/+1 |
| | |||||
* | ditto for id= | Joshua Peek | 2009-07-30 | 1 | -5/+1 |
| | |||||
* | Move id attribute methods into their related concern | Joshua Peek | 2009-07-30 | 1 | -0/+5 |
| | |||||
* | Concernify AR AttributeMethods | Joshua Peek | 2009-07-30 | 1 | -0/+36 |