1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/scoping
Chen Kinnrot 6552ce0361 Prevent scope named same as a ActiveRecord::Relation instance method.
Due to inconsistent behavior when chaining scopes and one scope named after a Relation method

Validation code added in 2 places:

- scope, to prevent problematic scope names.
- enum, cause it tries to auto define scope.
2017-11-28 15:50:18 +02:00
..
default_scoping_test.rb Fix postgres ordering issue on default scoping test 2017-11-13 17:41:53 -02:00
named_scoping_test.rb Prevent scope named same as a ActiveRecord::Relation instance method. 2017-11-28 15:50:18 +02:00
relation_scoping_test.rb scoping should respect current class and STI constraint (#29199) 2017-11-06 08:29:40 +09:00