Permalink
Browse files

Add return of array member if doesnt respond

  • Loading branch information...
1 parent c3c5cbb commit 1461eae62ccd0c5eb708af43098f5c34fc1c75d5 @barelyknown barelyknown committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/draper/array_support.rb
@@ -1,7 +1,7 @@
module Draper::ArraySupport
def decorate
- collect { |item| item.respond_to? :decorator_class ? item.decorate : item }
+ collect { |item| item.respond_to?(:decorator_class) ? item.decorate : item }
end
end

0 comments on commit 1461eae

Please sign in to comment.