aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index f9299434ec..35fb6fce03 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -48,7 +48,7 @@ module ActiveRecord
current_scope.scope_for_create
else
# Return an empty hash in the simple case
- return {} unless finder_needs_type_condition? || default_scopes.any?
+ return {} unless default_scopes.any?
scope = relation.clone
scope.default_scoped = true