Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

decorated_with? is just instance_of?

  • Loading branch information...
commit a6a122b5aa329ebd365abdb63b6a26f81491d887 1 parent a5d146c
David Rueck drueck authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/draper/collection_decorator.rb
7 lib/draper/collection_decorator.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.