aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-06-21 20:40:14 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-06-21 20:40:14 +0000
commit38d1a4aa09fada8bf5797b92bb97e96857448482 (patch)
tree62bc39ee499db3ee471cede3ffa7a29be9a39565 /activesupport/CHANGELOG
parente381eccbe2b913766c3bd737584e26a16319ab9a (diff)
downloadrails-38d1a4aa09fada8bf5797b92bb97e96857448482.tar.gz
rails-38d1a4aa09fada8bf5797b92bb97e96857448482.tar.bz2
rails-38d1a4aa09fada8bf5797b92bb97e96857448482.zip
alias_method_chain preserves method punctuation so foo, foo?, and foo! may be chained with the same feature.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r--activesupport/CHANGELOG7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG
index 0c3598b351..066b8b7d28 100644
--- a/activesupport/CHANGELOG
+++ b/activesupport/CHANGELOG
@@ -1,5 +1,12 @@
*SVN*
+* alias_method_chain preserves method punctuation so foo, foo?, and foo! may be chained with the same feature. [Jeremy Kemper]
+ Example:
+ alias_method_chain :save!, :validation
+ is equivalent to
+ alias_method :save_without_validation!, :save!
+ alias_method :save!, :save_with_validation!
+
* Enhance Symbol#to_proc so it works with list objects, such as multi-dimensional arrays. Closes #5295 [nov@yo.rim.or.jp]. Example:
{1 => "one", 2 => "two", 3 => "three"}.sort_by(&:first).map(&:last)