Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use IM when trying to load records using ID. | Emilio Tagua | 2011-04-04 | 1 | -5/+5 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Added new #update_column method. | Sebastian Martinez | 2011-03-27 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Revert "Removed #update_attribute method. New #update_column method." | Sebastian Martinez | 2011-03-27 | 1 | -1/+1 |
| | | | | | | This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Removed #update_attribute method. New #update_column method. | Sebastian Martinez | 2011-03-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Allow to read and write AR attributes with non valid identifiers | Santiago Pastorino | 2011-03-22 | 1 | -0/+12 |
| | |||||
* | Active Record typos. | R.T. Lechow | 2011-03-05 | 1 | -2/+2 |
| | |||||
* | use an attribute rather than a SQL literal | Aaron Patterson | 2011-02-26 | 1 | -0/+1 |
| | |||||
* | Add interpolation of association conditions back in, in the form of proc { ↵ | Jon Leighton | 2011-02-14 | 1 | -6/+0 |
| | | | | ... } rather than instance_eval-ing strings | ||||
* | rawr, mysql, mysql2, why do you hate me. :'( | Aaron Patterson | 2011-02-09 | 1 | -2/+4 |
| | |||||
* | use parenthesis so limit works on all dbs | Aaron Patterson | 2011-02-09 | 1 | -6/+4 |
| | |||||
* | Allow limit values to accept an ARel SQL literal. | Ken Collins | 2011-02-09 | 1 | -2/+8 |
| | |||||
* | comma limits do not make sense on oracle or pg | Aaron Patterson | 2011-02-08 | 1 | -3/+5 |
| | |||||
* | primary keys should not be cleared on cache clear, fixing oracle tests | Aaron Patterson | 2011-02-08 | 1 | -0/+5 |
| | |||||
* | limit() should sanitize limit values | Aaron Patterson | 2011-02-08 | 1 | -0/+34 |
| | | | | This fixes CVE-2011-0448 | ||||
* | make set_table_name take effect immediately | Jan | 2011-02-08 | 1 | -0/+11 |
| | |||||
* | allow AR caches to be cleared, clear them on class reloading | Aaron Patterson | 2011-02-03 | 1 | -0/+8 |
| | |||||
* | Make serialized columns with explicit object_type return a new instance of ↵ | Guillermo Álvarez | 2011-02-03 | 1 | -0/+19 |
| | | | | the object instead of nil | ||||
* | store the serialized column values in the @attributes hash | Aaron Patterson | 2011-02-01 | 1 | -0/+25 |
| | |||||
* | serialize can take an arbitrary code object | Aaron Patterson | 2011-02-01 | 1 | -0/+21 |
| | |||||
* | Use encode_with for marshalling | Jon Leighton | 2011-01-07 | 1 | -0/+7 |
| | |||||
* | Make serialized fixtures work again | Pratik Naik | 2010-12-29 | 1 | -1/+1 |
| | |||||
* | stop redifining methods on every call to set_primary_key | Aaron Patterson | 2010-12-24 | 1 | -4/+8 |
| | |||||
* | define_attr_method must serialize nil correctly | Aaron Patterson | 2010-12-20 | 1 | -0/+5 |
| | |||||
* | if there is no base name, we cannot determine a primary key | Aaron Patterson | 2010-12-20 | 1 | -0/+2 |
| | |||||
* | Ensure that boolean false is properly serialized [#6079 state:resolved] | Aditya Sanghi | 2010-12-08 | 1 | -0/+16 |
| | |||||
* | fixing dup regressions | Aaron Patterson | 2010-11-23 | 1 | -16/+16 |
| | |||||
* | fixing more dup tests | Aaron Patterson | 2010-11-23 | 1 | -21/+22 |
| | |||||
* | dup is working better | Aaron Patterson | 2010-11-23 | 1 | -4/+0 |
| | |||||
* | removing many unused variables | Aaron Patterson | 2010-11-16 | 1 | -2/+1 |
| | |||||
* | Models should be equals even after destroyed | Santiago Pastorino | 2010-11-16 | 1 | -0/+9 |
| | | | | [#5978 state:committed] | ||||
* | use persisted? instead of new_record? wherever possible | David Chelimsky | 2010-11-09 | 1 | -6/+6 |
| | | | | | | | | | | | - 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> | ||||
* | Add timestamps to Topic | Pratik Naik | 2010-11-02 | 1 | -1/+1 |
| | |||||
* | adding a test to ensure offsets with no limits will work [#5316 state:resolved] | Aaron Patterson | 2010-10-20 | 1 | -0/+6 |
| | |||||
* | default scope merge where clauses [#5488 state:resolved] | Jan | 2010-10-20 | 1 | -0/+1 |
| | |||||
* | should sort these ids before asserting they are equal! | Aaron Patterson | 2010-10-15 | 1 | -1/+1 |
| | |||||
* | testing that symbols work as sql literals | Aaron Patterson | 2010-10-15 | 1 | -0/+5 |
| | |||||
* | make sure we use the engine assigned to the table when quoting | Aaron Patterson | 2010-09-27 | 1 | -0/+18 |
| | |||||
* | adding a test for slug behavior | Aaron Patterson | 2010-09-27 | 1 | -0/+4 |
| | |||||
* | Hash#to_s behaves differently between 1.8 and 1.9, so adjust accordingly | Aaron Patterson | 2010-09-23 | 1 | -1/+1 |
| | |||||
* | testing poor behavior of hash serialization | Aaron Patterson | 2010-09-22 | 1 | -0/+4 |
| | |||||
* | Remove helper methods that were moved to helper.rb | Emilio Tagua | 2010-09-21 | 1 | -15/+0 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | serialized attributes should be serialized before validation [#5525 ↵ | Aaron Patterson | 2010-09-07 | 1 | -1/+5 |
| | | | | state:resolved] | ||||
* | order should always be concatenated. | Neeraj Singh | 2010-09-05 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | order that is declared first has highest priority in all cases. Here are some examples. Car.order('name desc').find(:first, :order => 'id').name Car.named_scope_with_order.named_scope_with_another_order Car.order('id DESC').scoping do Car.find(:first, :order => 'id asc') end No special treatment to with_scope or scoping. Also note that if default_scope declares an order then the order declared in default_scope has the highest priority unless with_exclusive_scope is used. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Reset default scope in Thread.current when class is unloaded [#5497 ↵ | Andrew White | 2010-09-01 | 1 | -0/+15 |
| | | | | | | state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Memoize STI class lookups for the duration of a request | Jeremy Kemper | 2010-08-19 | 1 | -1/+1 |
| | |||||
* | Both tests are using the same model, move the model to another file and add ↵ | Santiago Pastorino | 2010-08-14 | 1 | -13/+14 |
| | | | | the missing require | ||||
* | bringing over latest from master | Brian Lopez | 2010-08-09 | 1 | -542/+0 |
|\ | |||||
| * | Making Active Record base_test.rb thinner by moving tests | Neeraj Singh | 2010-08-03 | 1 | -532/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | to relevant files. Number of assertions before refactoring: 2391 tests, 7579 assertions, 0 failures, 0 errors Number of assertions after refactoring: 2391 tests, 7579 assertions, 0 failures, 0 errors Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | | skip the before_type_cast_on_datetime test entirely for mysql2 | Brian Lopez | 2010-08-02 | 1 | -17/+18 |
| | | |||||
* | | update tests for mysql2 support | Brian Lopez | 2010-08-02 | 1 | -4/+13 |
|/ |