# File lib/active_record/base.rb, line 998 def scope_constraints=(value) if allow_concurrency Thread.current[:constraints] ||= {} Thread.current[:constraints][self] = value else @scope_constraints = value end end