aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/inheritance_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Should `Regexp.escape` quoted table name in regexRyuta Kamizono2019-07-081-2/+2
* Don't cache `find_by` statements on STI subclassesRyuta Kamizono2019-02-271-0/+3
* Enable `Lint/UselessAssignment` cop to avoid unused variable warnings (#34904)Ryuta Kamizono2019-01-091-2/+2
* Enable `Layout/EmptyLinesAroundBlockBody` to reduce review cost in the futureRyuta Kamizono2018-07-121-1/+0
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
* Add AR::Base.base_class? predicateBogdan Gusiev2018-04-021-0/+9
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-14/+14
* Fix inheritance object creation from relationRyuta Kamizono2017-12-131-0/+39
* Clarify base_class tests on abstract STI vs concrete STIYukio Mizuta2017-08-121-4/+9
* Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-241-1/+1
* Merge pull request #29732 from kirs/frozen-activerecordRafael França2017-07-211-0/+2
|\
| * Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* | Revert "Extract `bind_param` and `bind_attribute` into `ActiveRecord::TestCase`"Sean Griffin2017-07-211-0/+1
|/
* Make preload query to preparableRyuta Kamizono2017-07-071-1/+1
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* 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