Test

Ruby code posted
created at 18 Oct 23:29

Edit | Back
1
2
3
4
5
6
7
8
9
10
class ApplicationController < ActionController::Base
  protect_from_forgery

  after_filter :discard_flash

  protected
  def discard_flash
    flash.discard if request.xhr?
  end
end
192 Bytes in 3 ms with coderay