diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 13:52:58 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 13:52:58 +0000 |
commit | 38e695037cb736196af05e0f4587742915ceee89 (patch) | |
tree | 78dd35488a22fa817d5381980b32a0eefd4ef93e /activesupport/CHANGELOG | |
parent | f73ecc8626044eb5047a6e728a93ebe04bcb14f9 (diff) | |
download | rails-38e695037cb736196af05e0f4587742915ceee89.tar.gz rails-38e695037cb736196af05e0f4587742915ceee89.tar.bz2 rails-38e695037cb736196af05e0f4587742915ceee89.zip |
Added availability of class inheritable attributes to the masses #477 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 15f48046b9..ecc9a75929 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,3 +1,21 @@ +* Added availability of class inheritable attributes to the masses #477 [bitsweat] + + class Foo + class_inheritable_reader :read_me + class_inheritable_writer :write_me + class_inheritable_accessor :read_and_write_me + class_inheritable_array :read_and_concat_me + class_inheritable_hash :read_and_update_me + end + + # Bar gets a clone of (not a reference to) Foo's attributes. + class Bar < Foo + end + + Bar.read_and_write_me == Foo.read_and_write_me + Bar.read_and_write_me = 'bar' + Bar.read_and_write_me != Foo.read_and_write_me + * Added Inflections as an extension on String, so Inflector.pluralize(Inflector.classify(name)) becomes name.classify.pluralize #476 [bitsweat] * Added Byte operations to Numeric, so 5.5.megabytes + 200.kilobytes #461 [Marcel Molina] |