rails/rails — Issue #4936: Freezing a cloned ActiveRecord object freezes the original too
Author: MSch
Created: 2012-02-08 02:49:17+00:00
State: open

Steps to reproduce:

$ rails new testcase
$ rails g model SomeARModel
$ rake db:migrate
$ rails console
> a = SomeArModel.new
> b = a.clone
> b.freeze
> a.frozen? # => true, should be false

Other ruby objects don't exhibit this behavior.