rails_options 0.1.2 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26017194b09b982f3a18f04ffe7803cd357d8f33b2267bcd7f10018c3cc3e56b
|
4
|
+
data.tar.gz: a63efba234ef02faeadd27b93ad3048edb4a7836944a089329e3513aa110de29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ad87383113c90650399b01a68c6a8fc5d9031736afc906ae1bef7164661f2b0531e10afe9c2905e7b372e1752ebe679de1f76c1736df709363f9e15526bf2d0
|
7
|
+
data.tar.gz: f88bfc674fbd48e16e47e7ee3f1ac20f98bc58984522f6152a6945445666fe96bb6fafcd2ef2d6c2723e1e0c14e451dc0a1df7d33c1ad0628ec3c5c2d61bbb94
|
data/README.md
CHANGED
@@ -13,4 +13,12 @@ gem install rails_options
|
|
13
13
|
```shell
|
14
14
|
# add migrations to app/db/migrations directory
|
15
15
|
rails g rails_options:install
|
16
|
+
```
|
17
|
+
|
18
|
+
## seeds
|
19
|
+
```rb
|
20
|
+
RailsOptions::Option.create(slug: 'site_title', value: '网站标题')
|
21
|
+
RailsOptions::Option.create(slug: 'site_slogan', value: '网站口号')
|
22
|
+
RailsOptions::Option.create(slug: 'site_description', value: '网站描述')
|
23
|
+
RailsOptions::Option.create(slug: 'site_keywords', value: 'php,python,java')
|
16
24
|
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_options
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- afeiship
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- app/models/rails_options/application_record.rb
|
38
38
|
- app/models/rails_options/option.rb
|
39
39
|
- config/routes.rb
|
40
|
-
- db/migrate/
|
40
|
+
- db/migrate/20220316133202_create_rails_options.rb
|
41
41
|
- lib/generators/rails_options/install/install_generator.rb
|
42
42
|
- lib/rails_options.rb
|
43
43
|
- lib/rails_options/engine.rb
|