spec/dummy/app/controllers/application_controller.rb in mokio-0.0.15 vs spec/dummy/app/controllers/application_controller.rb in mokio-2.0.8
- old
+ new
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
- protect_from_forgery with: :exception
+ protect_from_forgery prepend: true, with: :exception
end