render_variant 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render_variant/partial_variant_extension.rb +1 -0
- data/lib/render_variant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c655a18cacb1c1e3fa45d90e0e494f8ce5756be9
|
4
|
+
data.tar.gz: c9123c3502496e034d722948d553686c759d04a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c584ffa03513fd6732d9481405e31ee6854c51f7a92ea3741cadbfd5b73d08cd0e4babd80fce8f511a112a4f3ea255c7761e8232f9665113533a5e84167b8ff
|
7
|
+
data.tar.gz: a50003c5441d06767e276a53a474656de1711c1626013b3f725538706d2c1b235678cdc938e04dc79bc2505a82ab02695b84dd5e0689ee9e586559477da6b836
|
@@ -7,6 +7,7 @@ module RenderVariant
|
|
7
7
|
|
8
8
|
def setup_with_variant(context, options, block)
|
9
9
|
initial_setup = setup_without_variant(context, options, block)
|
10
|
+
return self unless @path
|
10
11
|
variant = if(options[:variant])
|
11
12
|
options[:variant]
|
12
13
|
elsif(options[:locals] && options[:locals][:variant])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_variant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alex
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|