aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods/read.rb
Commit message (Expand)AuthorAgeFilesLines
* Simplify AR configuration code.Jon Leighton2012-06-151-2/+6
* recurse in read_attribute we get caching / don't duplicate codeJon Leighton2012-03-301-3/+2
* Properly typecast id attribute when using custom primary keyCarlos Antonio da Silva2012-03-291-1/+4
* much code can be deleted thanks to @tenderlove's refactoringJon Leighton2012-03-281-58/+6
* attributes are cached by string keys, so to_s to support symbols. fixes #5549Aaron Patterson2012-03-271-1/+1
* removing dead codeAaron Patterson2012-02-091-4/+0
* only exclude serialized columns from cacheable columnsAaron Patterson2012-02-091-1/+5
* removed unnecessary translator objectAaron Patterson2012-02-081-16/+0
* use the key name yielded to the fetch blockAaron Patterson2012-02-081-9/+7
* return early if the cast attribute has been cachedAaron Patterson2012-02-081-11/+16
* always call `read_attribute` from the reader methodAaron Patterson2012-02-081-14/+12
* cache attribute if it is supposed to be cachedAaron Patterson2012-02-071-1/+5
* moving column types to an ivar on the resultAaron Patterson2012-02-071-1/+5
* moved attribute translation to an objectAaron Patterson2012-02-071-16/+10
* moved most of the evald code in to regular ruby codeAaron Patterson2012-02-071-10/+28
* copy the columns hash to the active record instances, typecast using columns ...Aaron Patterson2012-02-071-3/+10
* The primary key is always initialized in the @attributes hash to nil (unlessAaron Patterson2012-01-251-5/+1
* use fetch rather than both Hash#key? and Hash#[]Aaron Patterson2012-01-251-49/+51
* Revert "just use an alias. The target method is public, so make this one pub...Aaron Patterson2012-01-201-1/+4
* just use an alias. The target method is public, so make this one publicAaron Patterson2012-01-191-4/+1
* Support configuration on ActiveRecord::Model.Jon Leighton2011-12-281-1/+4
* Deal with global config better between AR::Base and AR::ModelJon Leighton2011-12-241-4/+1
* Doh, remove debugging lineJon Leighton2011-12-231-1/+0
* Fix #4046.Jon Leighton2011-12-231-4/+3
* Make read_attribute code path accessible at the class levelJon Leighton2011-12-221-19/+21
* Stop the build asploding on 1.8.7Jon Leighton2011-12-141-0/+2
* Use a separate module for 'external' attribute methods.Jon Leighton2011-12-141-14/+9
* fixing eval'd line numbers.Aaron Patterson2011-12-081-2/+2
* Revert "Roflscaling!" (for now)Jon Leighton2011-12-021-6/+9
* Fewer string allocations in attribute methodJon Leighton2011-12-011-4/+4
* Roflscaling!Jon Leighton2011-12-011-9/+6
* Create method with known identifier then alias into place.Jon Leighton2011-12-011-25/+21
* Remove some unnecessary code etcJon Leighton2011-12-011-7/+8
* Add test for read_attribute(:id) with non-standard PK.Jon Leighton2011-12-011-4/+4
* Remove the need for type_cast_attribute.Jon Leighton2011-12-011-31/+31
* Get rid of the underscore versions of attribute methods!Jon Leighton2011-12-011-4/+0
* Don't rely on underscore-prefixed attribute methods.Jon Leighton2011-12-011-30/+61
* consistencyJon Leighton2011-11-301-10/+10
* Don't need second paramJon Leighton2011-11-301-3/+3
* No longer need to undef id as we are defining it ourselvesJon Leighton2011-11-301-3/+0
* Extract attribute serialization code into a separate moduleJon Leighton2011-11-301-28/+5
* 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-3/+3
* Raise error on unknown primary key.Jon Leighton2011-10-051-3/+3
* Add deprecation for doing `attribute_method_suffix ''`Jon Leighton2011-09-131-2/+0
* only calculate method name onceAaron Patterson2011-06-301-2/+3
* Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-1/+1
* Avoid define_method if possible.José Valim2011-04-191-1/+1
* Return nil from read_attribute(:foo) if 'foo' is not present in the @attribut...Jon Leighton2011-04-151-1/+1