module ApiConsumer::ErrorHandler

Public Instance Methods

find(*attributes) click to toggle source
Calls superclass method
# File lib/api_consumer/error_handler.rb, line 3
def find(*attributes)
  scope = attributes.slice(0)
  if scope == :all
    begin
      super(*attributes)
    rescue ActiveResource::ConnectionError, ActiveResource::ClientError
      []
    end
  else
    super(*attributes)
  end
end