Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | use a map and flatten to avoid << calls on array | Aaron Patterson | 2010-10-20 | 1 | -7/+5 |
| | |||||
* | only call `column_methods_hash` once, use array math for faster test of ↵ | Aaron Patterson | 2010-10-20 | 1 | -5/+4 |
| | | | | existence | ||||
* | roll up weird method to meta programmed method | Aaron Patterson | 2010-10-20 | 1 | -11/+5 |
| | |||||
* | use zip + Hash.[] rather than looping with an index | Aaron Patterson | 2010-10-20 | 1 | -3/+1 |
| | |||||
* | extract options is not necessary | Aaron Patterson | 2010-10-20 | 1 | -1/+0 |
| | |||||
* | removing unused variable | Aaron Patterson | 2010-10-20 | 1 | -1/+1 |
| | |||||
* | default scope merge where clauses [#5488 state:resolved] | Jan | 2010-10-20 | 1 | -0/+1 |
| | |||||
* | default scope can accept any object that responds to #call | Aaron Patterson | 2010-10-19 | 1 | -1/+1 |
| | |||||
* | Allow default_scope to accept a Proc. | Tim Morgan | 2010-10-19 | 1 | -1/+6 |
| | |||||
* | reorder removed in favor of except(:order).order | Santiago Pastorino | 2010-10-11 | 1 | -1/+1 |
| | |||||
* | be kind to the garbage collector and reuse our visitor object | Aaron Patterson | 2010-10-03 | 1 | -1/+4 |
| | |||||
* | avoid creating objects when we can | Aaron Patterson | 2010-10-03 | 1 | -2/+1 |
| | |||||
* | Arel::Sql::Engine.new does not do anything anymore | Aaron Patterson | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | type_name should check for blank because people may have messed up databases | Aaron Patterson | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | type_name is never a blank string, so use faster .nil? call | Aaron Patterson | 2010-09-30 | 1 | -1/+1 |
| | |||||
* | speeding up object instantiation by eliminating instance_eval | Aaron Patterson | 2010-09-30 | 1 | -7/+21 |
| | |||||
* | Set attributes properly for model built from association with conditions ↵ | Marcelo Giorgi | 2010-09-28 | 1 | -8/+9 |
| | | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> |