mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 15:15:19 -07:00
ContextTest: Classes to use appropriate ancestor
This commit is contained in:
@@ -24,7 +24,7 @@ class ContextSensitiveDrop < Liquid::Drop
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Category < Liquid::Drop
|
class Category
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
def initialize(name)
|
def initialize(name)
|
||||||
@@ -36,8 +36,9 @@ class Category < Liquid::Drop
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class CategoryDrop
|
class CategoryDrop < Liquid::Drop
|
||||||
attr_accessor :category, :context
|
attr_accessor :category, :context
|
||||||
|
|
||||||
def initialize(category)
|
def initialize(category)
|
||||||
@category = category
|
@category = category
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user