You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beginrequire'bundler/inline'rescueLoadError=>e
$stderr.puts'Bundler version 1.10 or later is required. Please update your Bundler'raiseeendgemfile(true)dosource'https://rubygems.org'# Activate the gem you are reporting the issue against.gem'activerecord','4.2.4'gem'sqlite3'endrequire'active_record'require'minitest/autorun'require'logger'# Ensure backward compatibility with Minitest 4Minitest::Test=MiniTest::Unit::TestCaseunlessdefined?(Minitest::Test)# This connection will do for database-independent bug reports.ActiveRecord::Base.establish_connection(adapter: 'sqlite3',database: ':memory:')ActiveRecord::Base.logger=Logger.new(STDOUT)ActiveRecord::Schema.definedocreate_table:blogs,force: truedo |t|
endcreate_table:posts,force: truedo |t|
t.belongs_to:blogendcreate_table:comments,force: truedo |t|
t.belongs_to:postendendclassBlog < ActiveRecord::Basehas_one:postscope:with_post_with_comment_good,->{joins(post: :comment)}scope:with_post_with_comment_bad,->{joins(:post).merge(Post.with_comment)}endclassPost < ActiveRecord::Basebelongs_to:bloghas_one:commentscope:with_comment,->{joins(:comment)}endclassComment < ActiveRecord::Basebelongs_to:postendclassBugTest < Minitest::Testdeftest_association_stuffBlog.create!post: Post.create!putsBlog.with_post_with_comment_good.to_sqlputsBlog.with_post_with_comment_bad.to_sqlassert_equal0,Blog.with_post_with_comment_good.countassert_equal0,Blog.with_post_with_comment_bad.countendend
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails team are limited, and so we are asking for your help.
If you can still reproduce this error on the 5-1-stable branch or on master, please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions.
The text was updated successfully, but these errors were encountered: