aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/inheritance_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix `default_scoped` with defined `default_scope` on STI modelRyuta Kamizono2017-05-311-1/+6
* Define path with __dir__bogdanvlviv2017-05-231-1/+1
* Should escape meta characters in regexpRyuta Kamizono2017-05-071-1/+1
* Cache results of computing model typeKonstantin Lazarev2017-01-031-7/+7
* Add three new rubocop rulesRafael Mendonça França2016-08-161-3/+3
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
* modernizes hash syntax in activerecordXavier Noria2016-08-061-27/+27
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-61/+61
* Remove log-related stuff from ActiveSupport::DependenciesAaron Ang2016-03-151-5/+0
* Do not use default attributes for STI when instantiating a subclassSean Griffin2016-01-271-0/+4
* 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