Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 16th, 2014 170 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. class ApplicationController < ActionController::Base
  2.   protect_from_forgery
  3.   # look for a better way to allow JSON requests w/o CSRF token from devices
  4.   skip_before_filter :verify_authenticity_token, if: :json_request?
  5.  
  6.   protected
  7.  
  8.   def json_request?
  9.         request.format.json?
  10.   end
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top