aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix before_type_cast for timezone aware attributes by caching converted ↵Adam Meehan2011-03-231-4/+5
| | | | value on write. Also remove read method reload arg on timezone attributes.
* use class_eval with a string when it's possibleSantiago Pastorino2011-03-222-5/+13
|
* Allow to read and write AR attributes with non valid identifiersSantiago Pastorino2011-03-222-2/+7
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-153-26/+37
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * primary keys should not be cleared on cache clear, fixing oracle testsAaron Patterson2011-02-081-0/+1
| |
| * avoid nil.dupAkira Matsuda2011-02-071-1/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * make sure de-serialization happens on object instantiationAaron Patterson2011-02-012-3/+2
| |
| * store the serialized column values in the @attributes hashAaron Patterson2011-02-011-1/+2
| |
| * move the coders to the serialized_attributes hashAaron Patterson2011-02-011-7/+3
| |
| * Make before_type_cast available for datetime fieldsAkira Matsuda2011-02-011-2/+3
| | | | | | | | | | | | [#3973 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * use an identity conversion to avoid conditional codesAaron Patterson2011-01-281-2/+2
| |
| * join the cult of cargo. reduce the number of NoMethodErrors in the systemAaron Patterson2011-01-071-1/+1
| |
| * no need for to_symAaron Patterson2011-01-071-1/+1
| |
| * String#insert() mutates the string, so no need for lasgnAaron Patterson2011-01-071-1/+1
| |
| * fewer funcalls to the cached attributes variableAaron Patterson2011-01-071-1/+1
| |
| * stop redifining methods on every call to set_primary_keyAaron Patterson2010-12-241-4/+11
| |
| * returning id (for some yet to be discovered reason)Aaron Patterson2010-12-201-1/+1
| |
| * define_attr_method must serialize nil correctlyAaron Patterson2010-12-201-2/+6
| |
| * if there is no base name, we cannot determine a primary keyAaron Patterson2010-12-201-2/+4
| |
| * remove some lasignsAaron Patterson2010-12-201-6/+6
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-204-12/+17
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * Ensure that boolean false is properly serialized [#6079 state:resolved]Aditya Sanghi2010-12-081-1/+2
| |
| * Fix indentation hereSantiago Pastorino2010-12-041-7/+8
| |
| * attributes_before_type_cast are just the value of @attributesSantiago Pastorino2010-12-041-1/+1
| |
| * class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-202-3/+6
| | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* | Remove objects from identity map if save! failed, otherwise finding again ↵Emilio Tagua2010-11-191-0/+3
| | | | | | | | the same record will have invalid attributes.
* | Remove objects from identity map if save failed, otherwise finding again the ↵Emilio Tagua2010-11-191-0/+2
|/ | | | same record will have invalid attributes.
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-3/+4
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Make should_record_timestamps? serialization aware rather than object#changed?Pratik Naik2010-11-021-4/+0
|
* Ensure save always updates timestamps when serialized attributes are presentPratik Naik2010-11-021-0/+4
|
* No need for parenthesis hereSantiago Pastorino2010-10-171-1/+1
|
* no need to check for nilNeeraj Singh2010-10-171-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* No need to use inject here, use map instead.Emilio Tagua2010-09-221-4/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Cheaper attribute reads and respond_to?. Add underscore-prefixed method ↵Jeremy Kemper2010-09-092-5/+10
| | | | aliased to the attribute name so it can be overridden but still called internally.
* Cache unserialized attributesJeremy Kemper2010-09-091-5/+9
|
* Replacing superclass_delegating_accessoror with class_attribute.Neeraj Singh2010-08-311-1/+1
| | | | | | | :partial_attributes will have value true or false so there is no danger of mutability here. Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Makes AR use AMo to_key implementation"Santiago Pastorino2010-08-151-0/+6
| | | | This reverts commit 36a84a4f15f29b41c7cac2f8de410055006a8a8d.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-142-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* Makes AR use AMo to_key implementationSantiago Pastorino2010-08-131-6/+0
| | | | [#5249]
* ensuring that description does not exceed 100 columnsNeeraj Singh2010-08-022-3/+4
|
* Make sure timestamp is properly referencedBlake Smith2010-05-111-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make sure valid? preceives the context as in ActiveModel API (ht: Carlos ↵José Valim2010-05-101-1/+1
| | | | Antonio)
* eliminate alias_method_chain from ActiveRecordwycats2010-05-091-50/+50
|
* fix stack trace lines on class_evalSantiago Pastorino2010-04-091-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Dirty datetime attributes should be aware of time zone info [#3658 ↵Kristopher Murata2010-04-081-0/+6
| | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix dom_id for ActiveRecord [#4296 state:resolved]José Valim2010-03-301-16/+6
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-282-0/+4
|
* fisting uninitialized ivar warnings. [#4198 state:resolved]Aaron Patterson2010-03-161-8/+8
| | | | Signed-off-by: wycats <wycats@gmail.com>
* clean up more warnings, remove unnecessary methods, fix eval line numbers. ↵Aaron Patterson2010-03-161-1/+1
| | | | | | [#4193 state:resolved] Signed-off-by: wycats <wycats@gmail.com>
* Add to_key and to_param methods to ActiveModel::Conversion.José Valim2010-02-211-1/+1
|