aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix #5797. Error calling dup method on AR model with serialized fieldkennyj2012-05-301-0/+9
|
* Merge pull request #6376 from jgaskins/timestamp-microsecondsJeremy Kemper2012-05-181-1/+1
|\ | | | | Increase numeric-timestamp precision to nanoseconds
| * Increase `AR#cache_key` precision to nanosecondsJamie Gaskins2012-05-191-1/+1
| |
* | quarantine more deprecated stuffJon Leighton2012-05-181-18/+0
|/
* SQLite3 doesn't actually support the 'time' type.Erich Menge2012-05-151-3/+9
|
* Remove unnecessary assertions. We should only test the before_seq isn't same ↵kennyj2012-05-161-5/+1
| | | | to the after_seq when using sequencer.
* Duplicate column_defaults properly (closes #6115)Piotr Sarnacki2012-05-041-1/+7
|
* remove useless assertionsAaron Patterson2012-04-301-10/+3
|
* return value of block is returnedAaron Patterson2012-04-301-1/+9
|
* only yield to finder block if something is foundAaron Patterson2012-04-301-0/+10
|
* removed deprecation warningsAndrey Deryabin2012-04-281-1/+1
|
* find and replace deprecated keysJon Leighton2012-04-271-5/+5
|
* %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other ↵Jon Leighton2012-04-271-22/+22
| | | | things
* fix tests for SQLite3AdapterAndrey Deryabin2012-04-271-1/+1
|
* remove calls to find(:first), find(:last) and find(:all)Jon Leighton2012-04-261-5/+5
|
* remove deprecate #calculate callsJon Leighton2012-04-261-10/+4
|
* remove tests for #with_scope (it's now deprecated)Jon Leighton2012-04-251-78/+0
|
* Extract deprecated codeJon Leighton2012-04-251-0/+5
|
* Fix wrong return value from reset_sequence_name method.kennyj2012-04-141-2/+6
|
* Add Relation#find_by and Relation#find_by!Jon Leighton2012-03-301-0/+14
|
* Add ActiveRecord::Base#slice to slice method callsGuillermo Iguaran2012-03-291-0/+12
|
* attributes are cached by string keys, so to_s to support symbols. fixes #5549Aaron Patterson2012-03-271-1/+15
|
* changed all.map to pluckSandeep2012-03-191-1/+1
|
* Merge pull request #5327 from kennyj/fix_explicitly_inheraitance_columnAaron Patterson2012-03-151-0/+10
|\ | | | | Don't reset inheritance_column when setting explicitly.
| * Don't reset inheritance_column when setting explicitly.kennyj2012-03-081-0/+10
| |
* | Remove IdentityMapCarlos Antonio da Silva2012-03-131-2/+2
|/
* Merge pull request #5268 from carlosantoniodasilva/ar-new-record-warningJon Leighton2012-03-041-0/+9
|\ | | | | Fix ActiveRecord warning in tests with Marshal
| * Initialize @stale_state to nil in associationCarlos Antonio da Silva2012-03-041-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This apparently fix the warning related to @new_record variable not being initialized in AR's test suit, when an association is built and the object is marshalled/loaded. See these tests in AR's base_test.rb: test_marshalling_with_associations test_marshalling_new_record_round_trip_with_associations Closes #3720.
| * Added test case for new_record round trip with associations problemkennyj2012-03-041-0/+14
| |
* | Don't clear sequence name when we explicitly assign it.kennyj2012-03-041-0/+11
| |
* | Fix GH #4674. Reset column information and sequence name when setting ↵kennyj2012-03-041-0/+13
|/ | | | table_name.
* Merge branch 'master' into instance_readerAaron Patterson2012-02-091-0/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (30 commits) Bump tzinfo. 0.3.31 was released on November 6, 2011. Fix GH #4909. Dependency on TZInfo move from AR to AS. moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered one Refactored the OrderedHash related stuff Replaced OrderedHash usage with Ruby 1.9 Hash Replaced OrderedHash with Hash for ruby 1.9 series removed unnecessary code replacing the orderhash with hash for ruby-1.9 Clean up some wording. Fix typo. test title changed corresponding to the test replaced active support ordered hash to ruby hash on active resource PostgreSQL does not work in the same way of the other adapters AR::Relation#pluck: improve to work with joins Fix match docs Fix attribute_before_type_cast for serialized attributes. Fixes #4837. Fix failing request test Fixes in AMo README Update README to mention lint. Trim down Active Model API by removing valid? and errors.full_messages ...
| * Fix attribute_before_type_cast for serialized attributes. Fixes #4837.Jon Leighton2012-02-071-0/+15
| |
* | postgresql correctly typecasts back to Ruby, so change assertionsAaron Patterson2012-02-071-2/+4
| |
* | column_types hash is used for doing typecastingAaron Patterson2012-02-071-1/+21
| |
* | column types are passed from the result set to the instantiated AR objectAaron Patterson2012-02-071-0/+4
|/
* Do not serialize nil in serialized attribute.Kirill Lashuk2012-01-311-1/+14
|
* Merge pull request #4742 from petervandenabeele/masterAaron Patterson2012-01-311-0/+3
|\ | | | | Set the timezone correctly for a test in activerecord/../base_test.rb
| * Set default_timezone explicitly for a test in activerecord/../base_test.rbPeter Vandenabeele2012-01-291-0/+3
| |
* | Replaced all 'for' loops with Enumerable#eachNathan Broadbent2012-01-301-1/+1
|/
* call to_s on value passed to table_name=Sergey Nartimov2012-01-261-0/+5
|
* Merge pull request #4558 from stephencelis/type-cast-unknown-should-failAaron Patterson2012-01-231-5/+3
|\ | | | | Don't type-cast unknown types to YAML.
| * Don't type-cast unknown types to YAML.Stephen Celis2012-01-201-5/+3
| |
* | Fix typoJari Jokinen2012-01-221-1/+1
| |
* | change AR default_timezone to :utc since it's the default for AR::RailtieAkira Matsuda2012-01-211-2/+2
|/
* adding tests for previous_changes hashAaron Patterson2012-01-191-0/+25
|
* Fix table_name in ActiveRecord with more than one abstract ancestorsPiotr Sarnacki2012-01-121-0/+11
| | | | | | | | | | | | | | | | | When subclassing abstract_class table_name should be always computed based on class name, no matter if superclass is subclassing base or another abstract_class. So: class FirstAbstract < ActiveRecord::Base self.abstract_class = true end class SecondAbstract < FirstAbstract self.abstract_class = true end class Post < SecondAbstract self.table_name #=> 'posts' (not 'second_abstracts') end
* Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-4/+15
| | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* Ensure attribute methods are included after all the AR stuffJon Leighton2011-12-241-0/+1
|
* Fix #4046.Jon Leighton2011-12-231-0/+1
|