mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Use @options instead of older @context
This commit is contained in:
parent
58a733ee3b
commit
f42f670812
2 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,7 @@ module Draper
|
|||
end
|
||||
|
||||
def [](index)
|
||||
@klass.new(@wrapped_collection[index], @context)
|
||||
@klass.new(@wrapped_collection[index], @options)
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
|
@ -312,7 +312,6 @@ describe Draper::Base do
|
|||
|
||||
it "should allow decorated access by index" do
|
||||
subject = ProductDecorator.decorate(paged_array)
|
||||
|
||||
subject[0].should be_instance_of ProductDecorator
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue