aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* make set_table_name take effect immediatelyJan2011-02-081-0/+3
|
* almost fistedAaron Patterson2011-02-041-20/+6
|
* allow AR caches to be cleared, clear them on class reloadingAaron Patterson2011-02-031-0/+6
|
* Revert "ARel only requires the connection from the AR class. Simply return ↵Aaron Patterson2011-02-031-2/+8
| | | | | | the AR class rather than jump through hoops and store ivars" This reverts commit d65e3b481e72e8c76818a94353e9ac315c7c0272.
* ARel only requires the connection from the AR class. Simply return the AR ↵Aaron Patterson2011-02-031-8/+2
| | | | class rather than jump through hoops and store ivars
* reduce cache misses on STI subclassesAaron Patterson2011-02-031-2/+4
|
* this method should be privateAaron Patterson2011-02-031-7/+7
|
* Make serialized columns with explicit object_type return a new instance of ↵Guillermo Álvarez2011-02-031-4/+20
| | | | the object instead of nil
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-021-1/+1
|\
| * missing parenthesesAkira Matsuda2011-01-291-1/+1
| |
* | Refactor clear_timestamp_attributes to use the newly created ↵Franck Verrot2011-02-021-5/+3
| | | | | | | | | | | | all_timestamp_attributes_in_model Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | make sure de-serialization happens on object instantiationAaron Patterson2011-02-011-2/+8
| |
* | store the serialized column values in the @attributes hashAaron Patterson2011-02-011-7/+14
| |
* | serialize can take an arbitrary code objectAaron Patterson2011-02-011-1/+7
| |
* | share column cache among subclasses, only look up columns per AR::Base ↵Aaron Patterson2011-02-011-13/+15
| | | | | | | | subclass once
* | move the coders to the serialized_attributes hashAaron Patterson2011-02-011-8/+4
| |
* | avoid column lookup on subclasses, keep column info cached as table_name => ↵Aaron Patterson2011-02-011-2/+8
| | | | | | | | column_list
* | Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵John Firebaugh2011-01-311-3/+3
| | | | | | | | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | load and prefer psych as the YAML parser when it is availableAaron Patterson2011-01-211-0/+5
|/
* Arel::Table.engine will be deprecated, so stop using itAaron Patterson2011-01-141-1/+1
|
* use underlying _read_attribute method rather than causing NoMethodErrorsAaron Patterson2011-01-111-1/+1
|
* lazily instantiate AR objects in order to avoid NoMethodErrorsAaron Patterson2011-01-111-9/+10
|
* Use encode_with for marshallingJon Leighton2011-01-071-0/+20
|
* use a hash for caching aggregations rather than ivarsAaron Patterson2011-01-071-2/+3
|
* just use a hash for doing association cachingAaron Patterson2011-01-071-2/+5
|
* adding an `encode_with` method for Psych dump/load methodsAaron Patterson2011-01-051-0/+16
|
* Specify the STI type condition using SQL IN rather than a whole load of ORs. ↵Jon Leighton2010-12-311-4/+8
| | | | Required a fix to ActiveRecord::Relation#merge for properly merging create_with_value. This also fixes a situation where the type condition was appearing twice in the resultant SQL query.
* Simplify inspect implementationSantiago Pastorino2010-12-281-1/+1
| | | | | After 304d38c0536dc32a8a1595ba34370ebf69a0d50d we don't need the new_record? check anymore.
* No need to symbolize these.José Valim2010-12-271-2/+4
|
* to_sym stuff before passing it to arelAaron Patterson2010-12-221-1/+1
|
* Added ActiveRecord::Base#has_secure_password (via ↵David Heinemeier Hansson2010-12-181-0/+1
| | | | ActiveModel::SecurePassword) to encapsulate dead-simple password usage with SHA2 encryption and salting
* Replace rudimentary named_scope with scope. [#6052 state:resolved]Pavel Gorbokon2010-12-151-2/+2
| | | | | | | * rename method names (actually in tests) * rename instance variable @_named_scopes_cache to @_scopes_cache * rename references in doc comments * don't touch CHANGELOG :)
* Ensure that boolean false is properly serialized [#6079 state:resolved]Aditya Sanghi2010-12-081-1/+1
|
* We can use the keys of the @attributes hash here and avoid a method callSantiago Pastorino2010-12-051-1/+1
|
* use map instead of eachSantiago Pastorino2010-12-051-3/+1
|
* Base#[] and Base#[]= are aliases so implement them as aliases :)Santiago Pastorino2010-12-021-13/+11
|
* Doesn't need to sort, lets users of attribute_names sort them if they wantSantiago Pastorino2010-12-021-2/+2
|
* scope_for_create always returns somethingAaron Patterson2010-11-301-1/+3
|
* Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584bJosé Valim2010-11-281-5/+5
|
* removes a couple of redundant selfsXavier Noria2010-11-261-2/+2
|
* Document the behavior of the dup method: does not preserve timestampsFranck Verrot2010-11-251-0/+1
|
* Typo in the comments of the clear_timestamp_attributes methodFranck Verrot2010-11-251-1/+1
|
* Dup should reset the timestamps as it is considered a new recordFranck Verrot2010-11-251-0/+11
|
* clone and dup are working on 1.8Aaron Patterson2010-11-231-3/+12
|
* fixing dup regressionsAaron Patterson2010-11-231-4/+8
|
* fixing more dup testsAaron Patterson2010-11-231-4/+4
|
* initialize_clone can go awayAaron Patterson2010-11-231-5/+0
|
* dup keeps changesAaron Patterson2010-11-231-28/+21
|
* dup is working betterAaron Patterson2010-11-231-4/+8
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-11-231-1/+2
|\