Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add ActiveRecord::attribute_names to retrieve a list of attribute names. ↵ | Prem Sichanugrist | 2011-05-15 | 1 | -0/+13 |
| | | | | This method will also return an empty array on an abstract class or a model that the table doesn't exists. | ||||
* | Fix assigning protected attributes by attributes= | knapo | 2011-05-11 | 1 | -2/+7 |
| | |||||
* | minor cleaning | Vishnu Atrai | 2011-05-10 | 1 | -1/+1 |
| | |||||
* | Multiparameter POLA, time_select fixes. See LH4346 | Aditya Sanghi | 2011-05-05 | 1 | -0/+135 |
| | |||||
* | deprecated the use of the guard_protected_attributes argument with ↵ | Josh Kalderimis | 2011-04-25 | 1 | -0/+6 |
| | | | | attributes= in AR in favor of assign_attributes(attrs, :without_protection => true) | ||||
* | Added assign_attributes to Active Record which accepts a mass-assignment ↵ | Josh Kalderimis | 2011-04-24 | 1 | -1/+1 |
| | | | | security scope using the :as option, while also allowing mass-assignment security to be bypassed using :with_protected | ||||
* | Bypass IdentityMap in PostgreSQL geometric tests. | Jason Weathered | 2011-04-17 | 1 | -2/+2 |
| | | | | The identity map cache prevents us from seeing the DB formatted strings. | ||||
* | Evaluate default scopes at the last possible moment in order to avoid ↵ | Jon Leighton | 2011-04-12 | 1 | -10/+2 |
| | | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped. | ||||
* | Deprecated support for passing hashes and relations to default_scope, in ↵ | Jon Leighton | 2011-04-12 | 1 | -4/+8 |
| | | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details. | ||||
* | 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> |