Skip to content

Instantly share code, notes, and snippets.

@guillec
Created June 14, 2018 03:28
Show Gist options
  • Save guillec/39cbe0a2a164b85f6516c2db13500938 to your computer and use it in GitHub Desktop.
Save guillec/39cbe0a2a164b85f6516c2db13500938 to your computer and use it in GitHub Desktop.
can't add a new key into hash during iteration /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/scoping.rb:75:in
`set_value_for' /app/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/per_thread_registry.rb:50:in
`set_value_for' /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/scoping.rb:18:in
`current_scope=' /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/relation.rb:304:in
`ensure in scoping' /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/relation.rb:304:in
`scoping' /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/associations/collection_proxy.rb:874:in
`scoping' /app/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.8/lib/active_record/relation/delegation.rb:70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment