Merge pull request #193 from nashby/patch-1

remove extra array access method
This commit is contained in:
Steve Klabnik 2012-05-12 07:40:34 -07:00
commit a44c4b87db
1 changed files with 1 additions and 5 deletions

View File

@ -30,14 +30,10 @@ module Draper
@wrapped_collection == other
end
def [](index)
@klass.new(@wrapped_collection[index], @options)
end
def to_s
"#<DecoratedEnumerableProxy of #{@klass} for #{@wrapped_collection.inspect}>"
end
def context=(input)
self.map { |member| member.context = input }
end