Title / Description
Code class ApplicationController < ActionController::Base protect_from_forgery after_filter :discard_flash protected def discard_flash flash.discard if request.xhr? end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code