mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Prefer attr_reader
This commit is contained in:
@@ -432,9 +432,7 @@ module Liquid
|
||||
|
||||
private
|
||||
|
||||
def context
|
||||
@context ||= nil
|
||||
end
|
||||
attr_reader :context
|
||||
|
||||
def raise_property_error(property)
|
||||
raise Liquid::ArgumentError, "cannot select the property '#{property}'"
|
||||
|
||||
Reference in New Issue
Block a user