From 63721db1f3e730442c3ad0346eb19f1dce79cfd6 Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Mon, 11 Mar 2013 09:19:00 +0100 Subject: [PATCH] alias -> alias_method --- lib/draper/collection_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/draper/collection_decorator.rb b/lib/draper/collection_decorator.rb index 2eb21432..67d29ae1 100644 --- a/lib/draper/collection_decorator.rb +++ b/lib/draper/collection_decorator.rb @@ -74,7 +74,7 @@ def decorated? def kind_of?(klass) decorated_collection.kind_of?(klass) || super end - alias :is_a? :kind_of? + alias_method :is_a?, :kind_of? protected