rails/rails — pull request #9197 by yaotti (2013-02-06 08:00:34+00:00)
Title: Do not override attributes on `dup` by default scopes

Unexpecting overriding occurs like this:

class Topic < ActiveRecord::Base
default_scope { where(:private => false) }
end
Topic.new(:private => true).dup.private # => false