aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/inheritance_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix test failure on PostgreSQL by sorting the result before comparisonPrathamesh Sonpatki2016-01-191-4/+5
* run `type` column through attribtues API type casting.Yves Senn2016-01-191-0/+75
* don't rely on the columns hash to get defaults. follow-up to #17169.Yves Senn2015-12-021-0/+24
* Merge pull request #17169 from kuldeepaggarwal/fix-STI-default-typeYves Senn2015-12-021-0/+21
|\
| * STI cast new instances to `default type` on initialize.Kuldeep Aggarwal2015-12-021-0/+20
|/
* Move some AR test cases to inheritance_test.rbyui-knk2015-10-311-1/+80
* Revert "Merge pull request #21994 from mtodd/inherit-scopes"Rafael Mendonça França2015-10-271-2/+2
* Make inherited scope test failMatt Todd2015-10-261-2/+2
* invalid sti error message contains the full class name.Yves Senn2015-05-131-0/+11
* Merge branch 'sti-subclass-from-attributes' of https://github.com/agrobbin/ra...Yves Senn2015-05-131-0/+7
|\
| * allow setting of a demodulized class name when using STIAlex Robbin2015-05-111-0/+8
|/
* tests, extract helpers to modify global state.Yves Senn2015-05-071-46/+55
* Always reset changed attributes in becomesMiklos Fazekas2015-02-041-0/+6
* Test association was eager loaded, rather than reaching into internalsSean Griffin2015-01-261-2/+2
* Go through normal `where` logic when preloading associationsSean Griffin2014-12-261-1/+1
* Improve the performance of reading attributesSean Griffin2014-11-181-1/+1
* Remove dead test code for unsupported adaptersSean Griffin2014-05-171-8/+0
* Use teardown helper method.Guo Xiang Tan2014-03-141-1/+1
* Ensure AR #second, #third, etc. finders work through associationsJason Meller2014-01-211-2/+2
* Don't try to get the subclass if the inheritance column doesn't existUjjwal Thaakar2014-01-141-1/+8
* fix bug in becomes! when changing from base to subclass. Closes #13272.Yves Senn2014-01-131-0/+11
* Change all "can not"s to the correct "cannot".T.J. Schuck2014-01-031-2/+2
* Port test from cf1904f to avoid future regressionPrem Sichanugrist2013-10-031-1/+5
* Fix #new with an STI object with complex inheritanceNate Berkopec2013-04-021-0/+4
* move tests out from base_test.rbTakehiro Adachi2013-03-181-0/+14
* add an missing assertion to inheritance_test.rbTakehiro Adachi2013-03-111-0/+1
* Fix ActiveRecord `subclass_from_attrs` when eager_load is false.Dmitry Vorotilin2013-03-061-0/+11
* User assert_kind_of, invert assert_equal expectationsCarlos Antonio da Silva2012-11-291-3/+3
* Added STI support to init and building associationsJason Rush2012-11-291-0/+23
* Remove ActiveRecord::ModelJon Leighton2012-10-261-10/+1
* test cleanup, remove ruby_type because it's no longer neededYves Senn2012-09-031-1/+1
* rewrite inheritance tests with a custom inheritance_columnYves Senn2012-09-031-48/+38
* set the configured #inheritance_column on #become (#7503)Yves Senn2012-09-031-1/+9
* Remove ActiveRecord::Base.to_aJon Leighton2012-08-031-2/+2
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-12/+12
* ActiveRecord::Base.all returns a Relation.Jon Leighton2012-07-271-6/+6
* Refactor ActiveRecord::Inheritance.base_class logicbeerlington2012-07-261-0/+30
* remove deprecated callsJon Leighton2012-04-271-2/+2
* find and replace deprecated keysJon Leighton2012-04-271-7/+7
* %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other th...Jon Leighton2012-04-271-10/+10
* remove calls to find(:first), find(:last) and find(:all)Jon Leighton2012-04-261-4/+4
* Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-1/+0
* Deprecate set_inheritance_column in favour of self.inheritance_column=Jon Leighton2011-11-291-2/+2
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+1
* Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TES...Jon Leighton2011-06-041-1/+1
* Rewrote AssociationPreload.Jon Leighton2011-02-281-1/+1
* just use a hash for doing association cachingAaron Patterson2011-01-071-1/+1
* take more advantage of arel sql compilerAaron Patterson2010-12-251-1/+1
* stop redifining methods on every call to set_primary_keyAaron Patterson2010-12-241-0/+4
* fixing dup regressionsAaron Patterson2010-11-231-1/+1