This project is archived and is in readonly mode.

Changeset [8ae25a8e41168801590fdb95891cc5990b4db21c] by Jeremy Kemper

February 1st, 2010 @ 10:02 AM

Introduce class_attribute to declare inheritable class attributes. Writing an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.
http://github.com/rails/rails/commit/8ae25a8e41168801590fdb95891cc5...

Committed by Jeremy Kemper

  • A activesupport/lib/active_support/core_ext/class/attribute.rb
  • A activesupport/test/core_ext/class/attribute_test.rb
  • M activesupport/CHANGELOG

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>