Permalink
Browse files

Use a simple kind_of?(Symbol).

  • Loading branch information...
postmodern committed Jul 24, 2011
1 parent 47dbac0 commit 648f66b20d44726c99cac575bd0b7a5d71374ea9
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/dm-is-predefined/is/predefined.rb
@@ -150,8 +150,7 @@ def predefined_resource_with(query={})
# @api public
#
def get(key)
- case key
- when Symbol
+ if key.kind_of?(Symbol)
predefined_resource(key)
else
super(key)

0 comments on commit 648f66b

Please sign in to comment.