diff options
author | Sam Stephenson <sam@37signals.com> | 2005-12-15 20:03:23 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-12-15 20:03:23 +0000 |
commit | 85fe1ecaefe415ac1de36883f5f6162f49bd5287 (patch) | |
tree | 34f87cac51f7009928bc6ba0604cddf62be01d3e /activesupport/CHANGELOG | |
parent | fc4ffbdc69988b60bd17ffab5d8d81ec67a11180 (diff) | |
download | rails-85fe1ecaefe415ac1de36883f5f6162f49bd5287.tar.gz rails-85fe1ecaefe415ac1de36883f5f6162f49bd5287.tar.bz2 rails-85fe1ecaefe415ac1de36883f5f6162f49bd5287.zip |
Add Object#with_options for DRYing up multiple calls to methods having shared options
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index b5673f8a71..0f2d0abfd1 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,16 @@ *SVN* +* Add Object#with_options for DRYing up multiple calls to methods having shared options. [Sam Stephenson] Example: + + ActionController::Routing::Routes.draw do |map| + # Account routes + map.with_options(:controller => 'account') do |account| + account.home '', :action => 'dashboard' + account.signup 'signup', :action => 'new' + account.logout 'logout', :action => 'logout' + end + end + * Introduce Dependencies.warnings_on_first_load setting. If true, enables warnings on first load of a require_dependency. Otherwise, loads without warnings. Disabled (set to false) by default. [Jeremy Kemper] * Active Support is warnings-safe. #1792 [Eric Hodel] |