Conditionally load Rails 3 request middleware