This project is archived and is in readonly mode.

Changeset [b67ec8ba20099c8b39bf344f385bbbd2b9c8f47d] by José Valim

June 10th, 2010 @ 06:39 PM

class_attribute is not a direct replacement of class_inheritable_*.

If you are setting a hash or an array in class_attribute or you need
to freeze it, to ensure people won't modify it in place or you need
to dup it on inheritance.
http://github.com/rails/rails/commit/b67ec8ba20099c8b39bf344f385bbb...

Committed by José Valim

  • M actionpack/lib/abstract_controller/view_paths.rb
  • M actionpack/lib/action_controller/metal/hide_actions.rb
  • M actionpack/lib/action_view/base.rb
  • M activemodel/lib/active_model/validations.rb
  • M activerecord/lib/active_record/observer.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>