require_dependency "csrf_protection" ActionController::Base.class_eval do include ActionController::CsrfProtection end ActionView::Base.class_eval do include ActionView::Helpers::CsrfProtectionHelper end