From 4f2a635661077fd5c3097e2a4c1496760600132a Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 14 Feb 2019 04:34:00 +0900 Subject: Revert "Chaining named scope is no longer leaking to class level querying methods" This reverts #32380, since this may cause that silently leaking information when people upgrade the app. We need deprecation first before making this. --- activerecord/test/models/topic.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'activerecord/test/models/topic.rb') diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index fdb461ed7f..75890c327a 100644 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -10,9 +10,6 @@ class Topic < ActiveRecord::Base scope :approved, -> { where(approved: true) } scope :rejected, -> { where(approved: false) } - scope :children, -> { where.not(parent_id: nil) } - scope :has_children, -> { where(id: Topic.children.select(:parent_id)) } - scope :scope_with_lambda, lambda { all } scope :by_lifo, -> { where(author_name: "lifo") } -- cgit v1.2.3