Merge pull request #157 from stomar/avoid_warnings

Avoid warnings in Ruby 1.9.3
This commit is contained in:
Florian Weingarten
2013-06-05 09:10:41 -07:00
6 changed files with 13 additions and 13 deletions
+1
View File
@@ -172,6 +172,7 @@ module Liquid
# Fetches an object starting at the local scope and then moving up the hierachy
def find_variable(key)
scope = @scopes.find { |s| s.has_key?(key) }
variable = nil
if scope.nil?
@environments.each do |e|