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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e242db296ae012f5a4e56e8479e459d613b3424b
4
- data.tar.gz: 4584781378b516ec3504099915236f031ff0c859
3
+ metadata.gz: e018f418029dab17df06d67a1ac32b155005ec9e
4
+ data.tar.gz: 7aea6cc4eec96412802c10d17d056c8bbbf4c1f4
5
5
  SHA512:
6
- metadata.gz: f0882baf95961b1c6a737e489ffcc47998b2e53e2b2f1bc29d350b610ead45003a8a7298703dd52d5151b8b92a4686cedee04e6d6716b7be8fb6918142e81279
7
- data.tar.gz: ab4745044c0bca5749c22744f3b489d77ce1ea3dd941df35e04b6154d1b00c1b81a5fb514678cef2b5f902157dd6fae12437b890e2ad1770e604187d3c766ec5
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).present? ? render_region(region, true, snippet_locals) : (capture(&block) if block_given?)
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).present? ? render_region(region, false, snippet_locals) : (capture(&block) if block_given?)
82
+ region.try(:content).nil? ? (capture(&block) if block_given?) : render_region(region, false, snippet_locals)
83
83
  end
84
84
  end
85
85
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveRegions
2
- VERSION = '1.6.12'.freeze
2
+ VERSION = '1.6.14'.freeze
3
3
  end
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.12
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-03-30 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails