Merge pull request #193 from nashby/patch-1
remove extra array access method
This commit is contained in:
commit
a44c4b87db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue