aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* removed deprecated methods, and related tests, from ActiveRecordJosh Kalderimis2011-05-251-7/+0
|
* Allow pluralize_table_names for individual modelGuillermo Iguaran2011-05-201-0/+9
|
* Add ActiveRecord::attribute_names to retrieve a list of attribute names. ↵Prem Sichanugrist2011-05-151-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=knapo2011-05-111-2/+7
|
* minor cleaningVishnu Atrai2011-05-101-1/+1
|
* Multiparameter POLA, time_select fixes. See LH4346Aditya Sanghi2011-05-051-0/+135
|
* deprecated the use of the guard_protected_attributes argument with ↵Josh Kalderimis2011-04-251-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 Kalderimis2011-04-241-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 Weathered2011-04-171-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 Leighton2011-04-121-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 Leighton2011-04-121-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 Tagua2011-04-041-5/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Added new #update_column method.Sebastian Martinez2011-03-271-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Revert "Removed #update_attribute method. New #update_column method."Sebastian Martinez2011-03-271-1/+1
| | | | | | This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Removed #update_attribute method. New #update_column method.Sebastian Martinez2011-03-261-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Allow to read and write AR attributes with non valid identifiersSantiago Pastorino2011-03-221-0/+12
|
* Active Record typos.R.T. Lechow2011-03-051-2/+2
|
* use an attribute rather than a SQL literalAaron Patterson2011-02-261-0/+1
|
* Add interpolation of association conditions back in, in the form of proc { ↵Jon Leighton2011-02-141-6/+0
| | | | ... } rather than instance_eval-ing strings
* rawr, mysql, mysql2, why do you hate me. :'(Aaron Patterson2011-02-091-2/+4
|
* use parenthesis so limit works on all dbsAaron Patterson2011-02-091-6/+4
|
* Allow limit values to accept an ARel SQL literal.Ken Collins2011-02-091-2/+8
|
* comma limits do not make sense on oracle or pgAaron Patterson2011-02-081-3/+5
|
* primary keys should not be cleared on cache clear, fixing oracle testsAaron Patterson2011-02-081-0/+5
|
* limit() should sanitize limit valuesAaron Patterson2011-02-081-0/+34
| | | | This fixes CVE-2011-0448
* make set_table_name take effect immediatelyJan2011-02-081-0/+11
|
* allow AR caches to be cleared, clear them on class reloadingAaron Patterson2011-02-031-0/+8
|
* Make serialized columns with explicit object_type return a new instance of ↵Guillermo Álvarez2011-02-031-0/+19
| | | | the object instead of nil
* store the serialized column values in the @attributes hashAaron Patterson2011-02-011-0/+25
|
* serialize can take an arbitrary code objectAaron Patterson2011-02-011-0/+21
|
* Use encode_with for marshallingJon Leighton2011-01-071-0/+7
|
* Make serialized fixtures work againPratik Naik2010-12-291-1/+1
|
* stop redifining methods on every call to set_primary_keyAaron Patterson2010-12-241-4/+8
|
* define_attr_method must serialize nil correctlyAaron Patterson2010-12-201-0/+5
|
* if there is no base name, we cannot determine a primary keyAaron Patterson2010-12-201-0/+2
|
* Ensure that boolean false is properly serialized [#6079 state:resolved]Aditya Sanghi2010-12-081-0/+16
|
* fixing dup regressionsAaron Patterson2010-11-231-16/+16
|
* fixing more dup testsAaron Patterson2010-11-231-21/+22
|
* dup is working betterAaron Patterson2010-11-231-4/+0
|
* removing many unused variablesAaron Patterson2010-11-161-2/+1
|
* Models should be equals even after destroyedSantiago Pastorino2010-11-161-0/+9
| | | | [#5978 state:committed]
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-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 TopicPratik Naik2010-11-021-1/+1
|
* adding a test to ensure offsets with no limits will work [#5316 state:resolved]Aaron Patterson2010-10-201-0/+6
|
* default scope merge where clauses [#5488 state:resolved]Jan2010-10-201-0/+1
|
* should sort these ids before asserting they are equal!Aaron Patterson2010-10-151-1/+1
|
* testing that symbols work as sql literalsAaron Patterson2010-10-151-0/+5
|
* make sure we use the engine assigned to the table when quotingAaron Patterson2010-09-271-0/+18
|
* adding a test for slug behaviorAaron Patterson2010-09-271-0/+4
|
* Hash#to_s behaves differently between 1.8 and 1.9, so adjust accordinglyAaron Patterson2010-09-231-1/+1
|