summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbackspace2012-01-12 09:52:40 +0200
committerChris Sepic2012-01-22 17:54:19 -0600
commitce459fbd27be668501202bc7722fee402b68f38c (patch)
treed85acc7071ccc6da56a3df791327cdcaf2793c0d
parentc003c3d123069c5f2842b1867b63fec3c5de6933 (diff)
downloadevernote-ce459fbd27be668501202bc7722fee402b68f38c.tar.bz2
Change credentials check to allow subclasses of Hash
-rw-r--r--lib/evernote/user_store.rb2
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