Guest User

Untitled

a guest
Jul 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. class ApplicationController < ActionController::Base
  2. skip_before_action :verify_authenticity_token, if: :json_request?
  3.  
  4. def json_request?
  5. request.format.json?
  6. end
  7. end
Add Comment
Please, Sign In to add comment