rails: update defaults from 5.1 to 5.2.

protect_from_forgery removed from because it's now on by default.

ref: https://edgeguides.rubyonrails.org/configuring.html
This commit is contained in:
evazion
2019-08-22 22:09:05 -05:00
parent 87c480e2ed
commit 2e407fa476
4 changed files with 1 additions and 51 deletions

View File

@@ -1,5 +1,4 @@
class ApplicationController < ActionController::Base
protect_from_forgery
helper :pagination
before_action :reset_current_user
before_action :set_current_user