aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-07-07 01:20:27 -0700
committerJosé Valim <jose.valim@plataformatec.com.br>2012-07-07 01:20:27 -0700
commit8a6780bd34b8bb97f79b4fe2071b343478bbd547 (patch)
tree5471959a9d68f6aca5a2147efc5a24e1d06df6b1 /actionpack/CHANGELOG.md
parentc55df9301c34ae9778c6a7ffadaeeb3247017cde (diff)
parent238a4253bf229377b686bfcecc63dda2b59cff8f (diff)
downloadrails-8a6780bd34b8bb97f79b4fe2071b343478bbd547.tar.gz
rails-8a6780bd34b8bb97f79b4fe2071b343478bbd547.tar.bz2
rails-8a6780bd34b8bb97f79b4fe2071b343478bbd547.zip
Merge pull request #6992 from kennyj/improve_6977-2
Allow people to register their own flash types.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 7edba84ff6..67c9e04ab2 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,5 +1,15 @@
## Rails 4.0.0 (unreleased) ##
+* Add `ActionController::Flash.add_flash_types` method to allow people to register their own flash types. e.g.:
+
+ class ApplicationController
+ add_flash_types :error, :warning
+ end
+
+ If you add the above code, you can use `<%= error %>` in an erb, and `rediect_to /foo, :error => 'message'` in a controller.
+
+ *kennyj*
+
* Remove Active Model dependency from Action Pack. *Guillermo Iguaran*
* Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping: