-
-
Save traviskroberts/38e4cdc8731c381f671a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api::BaseController < ApplicationController | |
skip_before_filter :verify_authenticity_token | |
private | |
def require_user | |
unless current_user | |
render(:json => {:message => 'Authentication required.'}, :status => 401) and return false | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment