Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | load and prefer psych as the YAML parser when it is available | Aaron Patterson | 2011-01-21 | 1 | -0/+5 |
| | |||||
* | Arel::Table.engine will be deprecated, so stop using it | Aaron Patterson | 2011-01-14 | 1 | -1/+1 |
| | |||||
* | use underlying _read_attribute method rather than causing NoMethodErrors | Aaron Patterson | 2011-01-11 | 1 | -1/+1 |
| | |||||
* | lazily instantiate AR objects in order to avoid NoMethodErrors | Aaron Patterson | 2011-01-11 | 1 | -9/+10 |
| | |||||
* | Use encode_with for marshalling | Jon Leighton | 2011-01-07 | 1 | -0/+20 |
| | |||||
* | use a hash for caching aggregations rather than ivars | Aaron Patterson | 2011-01-07 | 1 | -2/+3 |
| | |||||
* | just use a hash for doing association caching | Aaron Patterson | 2011-01-07 | 1 | -2/+5 |
| | |||||
* | adding an `encode_with` method for Psych dump/load methods | Aaron Patterson | 2011-01-05 | 1 | -0/+16 |
| | |||||
* | Specify the STI type condition using SQL IN rather than a whole load of ORs. ↵ | Jon Leighton | 2010-12-31 | 1 | -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 implementation | Santiago Pastorino | 2010-12-28 | 1 | -1/+1 |
| | | | | | After 304d38c0536dc32a8a1595ba34370ebf69a0d50d we don't need the new_record? check anymore. | ||||
* | No need to symbolize these. | José Valim | 2010-12-27 | 1 | -2/+4 |
| | |||||
* | to_sym stuff before passing it to arel | Aaron Patterson | 2010-12-22 | 1 | -1/+1 |
| | |||||
* | Added ActiveRecord::Base#has_secure_password (via ↵ | David Heinemeier Hansson | 2010-12-18 | 1 | -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 Gorbokon | 2010-12-15 | 1 | -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 Sanghi | 2010-12-08 | 1 | -1/+1 |
| | |||||
* | We can use the keys of the @attributes hash here and avoid a method call | Santiago Pastorino | 2010-12-05 | 1 | -1/+1 |
| | |||||
* | use map instead of each | Santiago Pastorino | 2010-12-05 | 1 | -3/+1 |
| | |||||
* | Base#[] and Base#[]= are aliases so implement them as aliases :) | Santiago Pastorino | 2010-12-02 | 1 | -13/+11 |
| | |||||
* | Doesn't need to sort, lets users of attribute_names sort them if they want | Santiago Pastorino | 2010-12-02 | 1 | -2/+2 |
| | |||||
* | scope_for_create always returns something | Aaron Patterson | 2010-11-30 | 1 | -1/+3 |
| | |||||
* | Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584b | José Valim | 2010-11-28 | 1 | -5/+5 |
| | |||||
* | removes a couple of redundant selfs | Xavier Noria | 2010-11-26 | 1 | -2/+2 |
| | |||||
* | Document the behavior of the dup method: does not preserve timestamps | Franck Verrot | 2010-11-25 | 1 | -0/+1 |
| | |||||
* | Typo in the comments of the clear_timestamp_attributes method | Franck Verrot | 2010-11-25 | 1 | -1/+1 |
| | |||||
* | Dup should reset the timestamps as it is considered a new record | Franck Verrot | 2010-11-25 | 1 | -0/+11 |
| | |||||
* | clone and dup are working on 1.8 | Aaron Patterson | 2010-11-23 | 1 | -3/+12 |
| | |||||
* | fixing dup regressions | Aaron Patterson | 2010-11-23 | 1 | -4/+8 |
| | |||||
* | fixing more dup tests | Aaron Patterson | 2010-11-23 | 1 | -4/+4 |
| | |||||
* | initialize_clone can go away | Aaron Patterson | 2010-11-23 | 1 | -5/+0 |
| | |||||
* | dup keeps changes | Aaron Patterson | 2010-11-23 | 1 | -28/+21 |
| | |||||
* | dup is working better | Aaron Patterson | 2010-11-23 | 1 | -4/+8 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2010-11-23 | 1 | -1/+2 |
|\ | |||||
| * | Merge branch 'master' of github.com:lifo/docrails | Neeraj Singh | 2010-11-22 | 1 | -19/+24 |
| |\ | |||||
| * | | Revert "unscoped takes care of named_scopes too" | Neeraj Singh | 2010-11-22 | 1 | -1/+2 |
| | | | | | | | | | | | | This reverts commit 126fbd7ed8a310bf940414c1b7ddab06b03d400e. | ||||
| * | | unscoped takes care of named_scopes too | Neeraj Singh | 2010-11-17 | 1 | -2/+1 |
| | | | |||||
* | | | Remove confusing parenthesis. | Emilio Tagua | 2010-11-24 | 1 | -1/+1 |
| | | | |||||
* | | | No need to define a local var here. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 |
| |/ |/| | |||||
* | | unscoped takes care of named_scopes too | Neeraj Singh | 2010-11-21 | 1 | -2/+1 |
| | | |||||
* | | removed an AR method which wasn't used internally, had no tests, and had no docs | Josh Kalderimis | 2010-11-20 | 1 | -4/+0 |
| | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -8/+12 |
| | | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | replace and with && as per rails coding convention | Neeraj Singh | 2010-11-18 | 1 | -1/+1 |
| | | |||||
* | | remove the rescue block by returning a not asking Base for lookup_ancestors. ↵ | Neeraj Singh | 2010-11-17 | 1 | -5/+2 |
| | | | | | | | | It was also marked for later optimization. | ||||
* | | revises RDoc of AR::Base#== | Xavier Noria | 2010-11-16 | 1 | -1/+9 |
| | | |||||
* | | Models should be equals even after destroyed | Santiago Pastorino | 2010-11-16 | 1 | -3/+3 |
|/ | | | | [#5978 state:committed] | ||||
* | Don't check if persisted is defined just initialize it properly | Santiago Pastorino | 2010-11-09 | 1 | -1/+1 |
| | |||||
* | use persisted? instead of new_record? wherever possible | David Chelimsky | 2010-11-09 | 1 | -8/+10 |
| | | | | | | | | | | | - 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> | ||||
* | renaming bind_values to binds where it makes sense | Aaron Patterson | 2010-10-26 | 1 | -2/+2 |
| | |||||
* | one more mysql test left! | Aaron Patterson | 2010-10-26 | 1 | -1/+1 |
| | |||||
* | find_one uses prepared statement cache | Aaron Patterson | 2010-10-26 | 1 | -0/+1 |
| | |||||
* | exec returns an AR::Result | Aaron Patterson | 2010-10-26 | 1 | -2/+2 |
| |