spinto-liquid 2.3.0.2 → 2.3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/liquid/tags/for.rb +3 -2
- metadata +2 -2
data/lib/liquid/tags/for.rb
CHANGED
@@ -85,9 +85,10 @@ module Liquid
|
|
85
85
|
def render(context)
|
86
86
|
context.registers[:for] ||= Hash.new(0)
|
87
87
|
|
88
|
-
|
88
|
+
# Dup so reverse! doesn't hit the real object
|
89
|
+
collection = context[@collection_name].dup
|
89
90
|
collection = collection.to_a if collection.is_a?(Range)
|
90
|
-
|
91
|
+
|
91
92
|
# Maintains Ruby 1.8.7 String#each behaviour on 1.9
|
92
93
|
return render_else(context) unless iterable?(collection)
|
93
94
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spinto-liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.0.
|
4
|
+
version: 2.3.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|