aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods/write.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* PG column consults oid types when typecastingAaron Patterson2012-02-101-0/+6
|
* adding a comment for myselfAaron Patterson2012-02-061-8/+8
|
* delegate attribute typecasting to the columnAaron Patterson2012-02-061-16/+2
|
* Split out most of the AR::Base code into separate modules :cake:Jon Leighton2011-12-151-0/+12
|
* consistencyJon Leighton2011-11-301-2/+2
|
* omg computer science!Jon Leighton2011-11-301-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' methodJon Leighton2011-11-301-4/+0
|
* Speed up attribute invocation by checking if both name and calls are compilable.José Valim2011-11-141-1/+1
|
* Revert "Raise error on unknown primary key."Jon Leighton2011-10-051-1/+1
| | | | This reverts commit ee2be435b1e5c0e94a4ee93a1a310e0471a77d07.
* Raise error on unknown primary key.Jon Leighton2011-10-051-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 Leighton2011-09-131-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_missingJon Leighton2011-09-131-0/+4
|
* Avoid define_method if possible.José Valim2011-04-191-1/+1
|
* Added new #update_column method.Sebastian Martinez2011-03-271-0/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* use class_eval with a string when it's possibleSantiago Pastorino2011-03-221-2/+6
|
* Allow to read and write AR attributes with non valid identifiersSantiago Pastorino2011-03-221-1/+3
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-021-2/+2
|
* Revert "Refactoring attributes/types" [#3348 state:open]Pratik Naik2010-01-221-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 Chapweske2009-10-171-7/+2
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Extract generic attribute method generation to AMoJoshua Peek2009-08-041-1/+1
|
* Modified ActiveRecord::AttributeMethods to allow classes to specify ↵Paul Gillard2009-08-041-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 moduleJoshua Peek2009-08-021-1/+1
|
* Don't need to pass attr_name to evaluate_attribute_method anymoreJoshua Peek2009-07-301-1/+1
|
* ditto for id=Joshua Peek2009-07-301-5/+1
|
* Move id attribute methods into their related concernJoshua Peek2009-07-301-0/+5
|
* Concernify AR AttributeMethodsJoshua Peek2009-07-301-0/+36