diff options
author | Chen Kinnrot <kinnrot@gmail.com> | 2017-11-18 21:22:00 +0200 |
---|---|---|
committer | Chen Kinnrot <kinnrot@gmail.com> | 2017-11-28 15:50:18 +0200 |
commit | 6552ce0361f30a46a58a8bcb659866f06c8b7430 (patch) | |
tree | 9dafcb449cade201f9979ba94d935d93501a37e2 /activestorage/lib/active_storage/gem_version.rb | |
parent | f2b6406066888aaa10aba6c3cb95c2eb6dda760e (diff) | |
download | rails-6552ce0361f30a46a58a8bcb659866f06c8b7430.tar.gz rails-6552ce0361f30a46a58a8bcb659866f06c8b7430.tar.bz2 rails-6552ce0361f30a46a58a8bcb659866f06c8b7430.zip |
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.
Diffstat (limited to 'activestorage/lib/active_storage/gem_version.rb')
0 files changed, 0 insertions, 0 deletions