action_markdown 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 293af657a085cc950228d941a8d449c8c335a83043843bd4733a3b69cd6422c8
4
- data.tar.gz: 5e6e747ee48734dac51e1a06f61078d84ea4da676dae6df53182d783c32a4920
3
+ metadata.gz: f8c962323d1ff2acea1e7e1df96ba96ea2eebe94e2b526d03246f3f4c0390dbb
4
+ data.tar.gz: b18cb4ea30a5a93c0e0c7c0c28aa65869ce82c8ad32f8fa0c72d9d32a88881ef
5
5
  SHA512:
6
- metadata.gz: 9ba60286b520a138d923f3a7634ef70fececd6d67d543f8ee4d818879a0cd99b4dc12ed0b7969b2989a74c639770a3774074377f69ae913cf8e25dc490c0a01e
7
- data.tar.gz: 77406fd0f6231c75475dafbe9978980144ea7c7fab76d09b37ef491dfe1a51e73dc0d54cfc387af4a12b9de27b58ea056d30f7ce5c5cf9f3395af482581deefc
6
+ metadata.gz: 1519877f07359986e7379461440048336dd8c9154dc048c008ca05d69c43c4f594ffc7780464676f8e9efac8dace61d33c3f6af11d4864a43d99096915c8f2da
7
+ data.tar.gz: d44aaeff14fbdc4396ec4b02d779c10cbab4fec3d0c1c1e9032834de78b4b49027a13bda3b017fe2e91f88ae4002bd576fd7ef4d9d810dae3e71737f6bfbe1fd
@@ -6,6 +6,11 @@ module ActionMarkdown
6
6
 
7
7
  belongs_to :record, polymorphic: true, touch: true
8
8
 
9
- delegate :to_s, :to_html, to: :body
9
+ delegate :to_s, :nil?, to: :body
10
+ delegate :blank?, :empty?, :present?, to: :to_html
11
+
12
+ def to_html
13
+ body&.to_html.to_s
14
+ end
10
15
  end
11
16
  end
@@ -1,3 +1,3 @@
1
1
  module ActionMarkdown
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Ruban