a guest Sep 16th, 2014 170 Never
- class ApplicationController < ActionController::Base
- # look for a better way to allow JSON requests w/o CSRF token from devices
- skip_before_filter :verify_authenticity_token, if: :json_request?
- def json_request?
RAW Paste Data