rails_templatable 0.1.3 → 0.1.4
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 +4 -4
- data/app/models/rails_templatable/template.rb +2 -1
- data/lib/rails_templatable/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: b3b9b72537db596dd8054dbcabf72ad46ff11578a61057281be3e6bfc9a02cb6
|
|
4
|
+
data.tar.gz: 8cf75e7e3d287f11ac3c2763dac55bd5264a7914cb559389133fcb9a30c9d48d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d30d20d3b2c0e275acc1b555a64eb7bcab146e446db99fca850ff398ab11cebaefc5dbb3ad1d944a4b0d8ea5e884794954abf4d2830e7b785ab00a68547203a1
|
|
7
|
+
data.tar.gz: bbebca7d2130c3c00f27ce66a664c9439fec087a8f7a53b4980f992e3075ab2ff333704d4a00dee9579430771a8bf9551f9115f44454f501f36c2cf96f0c1622
|
|
@@ -4,7 +4,8 @@ module RailsTemplatable
|
|
|
4
4
|
|
|
5
5
|
# Rails 6 compatible enum syntax
|
|
6
6
|
# For Rails 8+, use: enum :content_format, { html: 0, markdown: 1, txt: 2 }
|
|
7
|
-
enum content_format: { html: 0, markdown: 1, txt: 2 }
|
|
7
|
+
# enum content_format: { html: 0, markdown: 1, txt: 2 }
|
|
8
|
+
enum :content_format, { html: 0, markdown: 1, txt: 2 }
|
|
8
9
|
|
|
9
10
|
validates :category, presence: true
|
|
10
11
|
validates :content, presence: true
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_templatable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- aric.zheng
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|