Permalink
Browse files

decorated_with? is just instance_of?

  • Loading branch information...
1 parent a5d146c commit a6a122b5aa329ebd365abdb63b6a26f81491d887 @drueck drueck committed Mar 14, 2013
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/draper/collection_decorator.rb
@@ -66,12 +66,7 @@ def decorated?
true
end
- # Checks if a given decorator has been applied to the collection.
- #
- # @param [Class] decorator_class
- def decorated_with?(decorator_class)
- self.instance_of? decorator_class
- end
+ alias_method :decorated_with?, :instance_of?
def kind_of?(klass)
decorated_collection.kind_of?(klass) || super

0 comments on commit a6a122b

Please sign in to comment.