module FingerbankClient::ActionController
Private Instance Methods
current_device()
click to toggle source
# File lib/fingerbank_client/action_controller.rb, line 19 def current_device @device = nil begin @device = fingerbank.lookup(:user_agent => request.headers["User-Agent"]) rescue FingerbankError => e @device = nil Fingerbank.logger.error "Fingerbank : Couldn't lookup device. Exception is stored in fingerbank.last_error. Message is : #{e.message}" fingerbank.last_error = e end return @device end
fingerbank()
click to toggle source
# File lib/fingerbank_client/action_controller.rb, line 15 def fingerbank @fingerbank_client ||= FingerbankClient.new end