pass_server.rb
# Check validity of DevToken in Authorization Header
Check validity of DevToken in Authorization Header
Check validity of DevToken in Authorization Header
def check_dev_token?
    dev_token = self.users.where(:api_token => authentication_token).select(:api_token).first
    if dev_token
      return true
    else
      halt 401, 'DevToken is incorrect'
    end
  end
def check_dev_token? dev_token = self . users . where ( :api_token => authentication_token ) . select ( :api_token ) . first if dev_token return true else halt 401 , 'DevToken is incorrect' end end
Check validity of DevToken in Authorization Header
Check validity of DevToken in Authorization Header