From ce459fbd27be668501202bc7722fee402b68f38c Mon Sep 17 00:00:00 2001 From: backspace Date: Thu, 12 Jan 2012 09:52:40 +0200 Subject: Change credentials check to allow subclasses of Hash --- lib/evernote/user_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/evernote/user_store.rb b/lib/evernote/user_store.rb index 152e267..db81f2d 100644 --- a/lib/evernote/user_store.rb +++ b/lib/evernote/user_store.rb @@ -7,7 +7,7 @@ module Evernote def initialize(uri, credentials, thrift_client_options = {}) - raise ArgumentError, "credentials must be passed in as a hash" unless credentials.class == Hash + raise ArgumentError, "credentials must be passed in as a hash" unless credentials.is_a? Hash credentials=credentials.inject({}) { |h,(k,v)| h[k.to_sym] = v; h } # convert any stringifyed hash keys into symbols -- cgit v1.2.3