From a65c4f51bc3adced0cd12f70af12d86d9345d223 Mon Sep 17 00:00:00 2001 From: thedarkone Date: Fri, 28 Jan 2011 23:24:18 +0100 Subject: [PATCH] These are strings already. --- lib/liquid/context.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/liquid/context.rb b/lib/liquid/context.rb index f5fef8c..d37cf91 100644 --- a/lib/liquid/context.rb +++ b/lib/liquid/context.rb @@ -133,9 +133,9 @@ module Liquid else case key when /^'(.*)'$/ # Single quoted strings - $1.to_s + $1 when /^"(.*)"$/ # Double quoted strings - $1.to_s + $1 when /^(\d+)$/ # Integer and floats $1.to_i when /^\((\S+)\.\.(\S+)\)$/ # Ranges