polyblock 0.2.2 → 0.2.3

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: 5c6367b67597e23403b1b324302ac4b9294ad8ad
4
- data.tar.gz: 8d8f624ef68c9637668d988d5475b33d7dc1b22b
3
+ metadata.gz: 9b896b2db331f79aec0f8f740c19cb8f80bbc2da
4
+ data.tar.gz: 6c3a7c607fdb10424957605bd756a13b385f3b04
5
5
  SHA512:
6
- metadata.gz: 7ea9a74bae0f7979416fe296b244815beec2619b0d094815365bcb8223b1b30312b4ea80902b0b3419bf3dcf781b67a66db91fd077879825d497ee6aba8d2afb
7
- data.tar.gz: 58c958b3cf5e13cdf6a70899baf94518af428f4bee92734f942c821daae0ca769a91835bce9b9416abf5fb414fbb60297b73c2e1163685247016e7df6999dc48
6
+ metadata.gz: 5ff400fcc4336d56e4254982f52ab08ac79068d0d4fbe0424d6f32656f1e2b802dcd59f72f407e450551faf730f2c2c20d5f79fa5c94918d9b0a561df507581b
7
+ data.tar.gz: d535a91e242c24b98f6bceff990a4343f94b84291b99f6c1eb677043404113a20ad2efb363868bb459f1a23ade0e8f46faab790379d7a5498e25d009ce583796
@@ -15,6 +15,9 @@ module Polyblock
15
15
  end
16
16
 
17
17
  module LocalInstanceMethods
18
+ def has_polyblock_content_for?(name)
19
+ !self.send(name).nil? and !self.send(name).content.blank?
20
+ end
18
21
  end
19
22
  end
20
23
  end
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-08 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails