diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-28 00:24:23 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-28 00:24:23 +0900 |
commit | 634953af94f8677f9fd3b07b9560139f50d29467 (patch) | |
tree | ab25049b68b40b96e83c7cfe21e3ec80dfd107fa /activerecord/test | |
parent | 672c6cad78b102f5736f7a76ebe616e1e47ef557 (diff) | |
download | rails-634953af94f8677f9fd3b07b9560139f50d29467.tar.gz rails-634953af94f8677f9fd3b07b9560139f50d29467.tar.bz2 rails-634953af94f8677f9fd3b07b9560139f50d29467.zip |
Allow returning nil for `default_scope`
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/models/developer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb index ec48094207..c6574cf6e7 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -207,6 +207,7 @@ end class MultiplePoorDeveloperCalledJamis < ActiveRecord::Base self.table_name = "developers" + default_scope { } default_scope -> { where(name: "Jamis") } default_scope -> { where(salary: 50000) } end |