effective_regions 1.6.12 → 1.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_regions_helper.rb +2 -2
- data/lib/effective_regions/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: e018f418029dab17df06d67a1ac32b155005ec9e
|
4
|
+
data.tar.gz: 7aea6cc4eec96412802c10d17d056c8bbbf4c1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00daa2998d383d60eb3bcda40b9a7006c6e3af1e98cd74c77df17b628d0b75bac05fdcf36bf52d357d115cd0fe3fca411854ab4a6d5a5572d77cc8a8deeadcb3
|
7
|
+
data.tar.gz: a6ab41a67251bb4d673ba0d251bfd6b9c248fe169c93d9a576741f5bbb45e650965338f764bbc1ec5e4c5fc96fb2fec6e9ee10326111ab67f4b6ae56ce2e6901
|
@@ -76,10 +76,10 @@ module EffectiveRegionsHelper
|
|
76
76
|
|
77
77
|
if effectively_editing? && (can_edit && options[:editable] != false) # If we need the editable div
|
78
78
|
content_tag(editable_tag, opts) do
|
79
|
-
region.try(:content).
|
79
|
+
region.try(:content).nil? ? (capture(&block) if block_given?) : render_region(region, true, snippet_locals)
|
80
80
|
end
|
81
81
|
else
|
82
|
-
region.try(:content).
|
82
|
+
region.try(:content).nil? ? (capture(&block) if block_given?) : render_region(region, false, snippet_locals)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_regions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|