From 129f2807239fdc6ba6a19e838218a3f4d72cfc9a Mon Sep 17 00:00:00 2001 From: Leena Date: Wed, 24 Feb 2016 23:46:15 +0530 Subject: [PATCH] Remove the duplicate method definition --- app/controllers/application_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7fd59b6..b71765c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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)