effective_regions 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d747a72a1a53aa0b289a95b7c7e8e993bdb28e0e
4
- data.tar.gz: 7091cb8e4e3b5587c731fb4f1c4b77991050820f
3
+ metadata.gz: c68f8b9320e92711bff9e48cff2c10ea1cca058e
4
+ data.tar.gz: ad1412d4611d786ff37aff95ab1a28f1fcdc4ddf
5
5
  SHA512:
6
- metadata.gz: e67b827f24e0b16ca488c46429e38e50e37580059c7abf122a45257781b631788a6d2bb66812d61aa0cd8a2b5e8e07c42621e827b6bf9bf33bf5ed90892fb7a4
7
- data.tar.gz: 123c9fab3c8bf274807a81e9d93ff8770f76c251210f4243c02a56062919ee336ce4cdad9137577b125e4af429cd009dc4ad2a3361129f75de8c9b85af27ccc6
6
+ metadata.gz: e341d276e8691a305c1af17114f5aa103c70abcbe7b44e269275b569674b3c2b34a08e70aad86cb7fd2e9e2788cffe0113d68271f8b375ddc6d0f86dfcb44c0b
7
+ data.tar.gz: 31da5d284bb39032425b1cf7c9cf41e1b652694dad89105cea4476370fef10210bf584d44dab02486b43cd4c9eb87f8024d329a9805ea07a502d17ef44c0baf0
@@ -83,10 +83,10 @@ module EffectiveRegionsHelper
83
83
 
84
84
  if effectively_editting? && (can_edit && options[:editable] != false) # If we need the editable div
85
85
  content_tag(editable_tag, opts) do
86
- region.try(:content).present? ? render_region(region, true) : (yield if block_given?; nil)
86
+ region.try(:content).present? ? render_region(region, true) : (capture(&block) if block_given?)
87
87
  end
88
88
  else
89
- region.try(:content).present? ? render_region(region, false) : (yield if block_given?; nil)
89
+ region.try(:content).present? ? render_region(region, false) : (capture(&block) if block_given?)
90
90
  end
91
91
  end
92
92
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.4.6'.freeze
2
+ VERSION = '1.4.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect