Remove the duplicate method definition

This commit is contained in:
Leena
2016-02-24 23:46:15 +05:30
parent 2c55e042d6
commit 129f280723

View File

@@ -3,10 +3,10 @@ class ApplicationController < ActionController::Base
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :null_session
def authenticate_device
authenticate_with_token || render_unauthorized
end
# def authenticate_device
# authenticate_with_token || render_unauthorized
# end
#
def authenticate_device
authenticate_or_request_with_http_token do |token, options|
@device = Device.find_by(access_token: token)