Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

all `scope_chain` methods allocate new arrays, no need to dup

  • Loading branch information...
commit 1468a4b89aa4bca99160bfa03572b2c0ab348db5 1 parent fa41836
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/reflection.rb
2  activerecord/lib/active_record/reflection.rb
@@ -564,7 +564,7 @@ def chain
# of scopes corresponding to the chain.
def scope_chain
@scope_chain ||= begin
- scope_chain =
+ scope_chain = source_reflection.scope_chain
# Add to it the scope from this reflection (if any)
scope_chain.first << scope if scope

1 comment on commit 1468a4b


This commit broke PostgreSQL tests

Please sign in to comment.
Something went wrong with that request. Please try again.