actiontext-lite 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/actiontext-lite/attribute.rb +3 -1
- data/lib/actiontext-lite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0c424af64e7b47902414ec2b117b93428fdb1b1580b64900159878b30b92a85
|
4
|
+
data.tar.gz: 9a3ab434e78fb6438ca0f8238b166832f277f2620728bd541a298123a03a272d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d7274b230795dd6fab1ddd4ccd45f8f25c9dd8abd8722179d234cc61bca2f04646396cc2ef2c3f074c494ad51567fd1a960ed6ac0e497365a92eac0b98b6d69
|
7
|
+
data.tar.gz: e8a804d571ebac1e7ba14569566a90f8c89c2aefa1a4c21bc3c2e16449d6b42ef09bafda5cbb8a394a3598258a91567602f7ffe973ef43ce6f87cb557dc474b4
|
data/README.md
CHANGED
@@ -18,7 +18,9 @@ module ActionTextLite
|
|
18
18
|
end
|
19
19
|
CODE
|
20
20
|
|
21
|
-
has_one :"rich_text_#{name}", -> { where(name: name) },
|
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
|
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.
|
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:
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actiontext
|