diff options
| -rw-r--r-- | lib/evernote/user_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
