```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery
end
```

Add ability to flush per request for local testing.
user
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery
  
  #after_filter :flush_metrics_rails
  
  # manually flush per request
  def flush_metrics_rails
    Metrics::Rails.flush
  end
end
```
assistant