diff options
author | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-06-08 13:53:12 +0200 |
---|---|---|
committer | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-06-08 14:00:53 +0200 |
commit | 1f4c4c69ee5d0cc37ed35ffd3d27fb29c72751cf (patch) | |
tree | 438e4da426fc4b714b0d8a748cc031245a0de629 /guides/source/rails_on_rack.md | |
parent | 04417f3eb5decfe2df77f227e679c8360e7e6e97 (diff) | |
download | rails-1f4c4c69ee5d0cc37ed35ffd3d27fb29c72751cf.tar.gz rails-1f4c4c69ee5d0cc37ed35ffd3d27fb29c72751cf.tar.bz2 rails-1f4c4c69ee5d0cc37ed35ffd3d27fb29c72751cf.zip |
Middleware in guide updated [ci skip]
Diffstat (limited to 'guides/source/rails_on_rack.md')
-rw-r--r-- | guides/source/rails_on_rack.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md index 4b77892dd3..2f36e4b8ac 100644 --- a/guides/source/rails_on_rack.md +++ b/guides/source/rails_on_rack.md @@ -131,6 +131,7 @@ use ActionDispatch::DebugExceptions use ActionDispatch::RemoteIp use ActionDispatch::Reloader use ActionDispatch::Callbacks +use ActiveRecord::Migration::CheckPending use ActiveRecord::ConnectionAdapters::ConnectionManagement use ActiveRecord::QueryCache use ActionDispatch::Cookies @@ -272,6 +273,11 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol * Runs the prepare callbacks before serving the request. + + **`ActiveRecord::Migration::CheckPending`** + +* Checks pending migrations and raise an error if migrations are pending. + **`ActiveRecord::ConnectionAdapters::ConnectionManagement`** * Cleans active connections after each request, unless the `rack.test` key in the request environment is set to `true`. |