This project is archived and is in readonly mode.
Changeset [b67ec8ba20099c8b39bf344f385bbbd2b9c8f47d] by José Valim
Revision b67ec8ba20099c8b39bf344f385bbbd2b9c8f47d,
committed 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...
5 changed files
-
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