actiontext-lite 0.0.1 → 0.0.2

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: '085a22708a88f2d4a0d799d9b4bd65f63cca2dae6d54926180de89fe3fdc88bd'
4
- data.tar.gz: ec257f87178800c84a40a2a3a3dc00e59f94ac8817bb30527dc8bbcf9e151bc8
3
+ metadata.gz: a0c424af64e7b47902414ec2b117b93428fdb1b1580b64900159878b30b92a85
4
+ data.tar.gz: 9a3ab434e78fb6438ca0f8238b166832f277f2620728bd541a298123a03a272d
5
5
  SHA512:
6
- metadata.gz: a30dcab1155c0e59be0fcbb7b664cd458194aaaa8159a9aac36abfba52b61d4376b3eb74bc47f86935f65dbaf3bfa541ff9c6437f9d95cc7a5f43f47aa9f5732
7
- data.tar.gz: cf4a716991719bc4906a0761c7196871e2a2aa9debc7c32560620fa3c1275c71b98c03578b5c794705fe49c57340fc17d597919e65424d9e863b4a9a3fe91c8b
6
+ metadata.gz: 1d7274b230795dd6fab1ddd4ccd45f8f25c9dd8abd8722179d234cc61bca2f04646396cc2ef2c3f074c494ad51567fd1a960ed6ac0e497365a92eac0b98b6d69
7
+ data.tar.gz: e8a804d571ebac1e7ba14569566a90f8c89c2aefa1a4c21bc3c2e16449d6b42ef09bafda5cbb8a394a3598258a91567602f7ffe973ef43ce6f87cb557dc474b4
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Lite version of the ActionText.
4
4
 
5
+ [ActionText Lite 中文说明](https://ruby-china.org/topics/39130)
6
+
5
7
  ## Why use Lite version?
6
8
 
7
9
  - Action Text integration Trix by default, but that not useful, our users and editors does not like it 😩.
@@ -18,7 +18,9 @@ module ActionTextLite
18
18
  end
19
19
  CODE
20
20
 
21
- has_one :"rich_text_#{name}", -> { where(name: name) }, class_name: "ActionTextLite::RichText", as: :record, inverse_of: :record
21
+ has_one :"rich_text_#{name}", -> { where(name: name) },
22
+ class_name: "ActionTextLite::RichText", as: :record, inverse_of: :record, autosave: true, dependent: :destroy
23
+
22
24
  scope :"with_rich_text_#{name}", -> { includes("rich_text_#{name}") }
23
25
 
24
26
  after_save do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionTextLite
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actiontext-lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actiontext