rails_options 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f613a4139edbcf229902fd7100b677cdae2dd48554b55fc447ba78068c6b2f23
4
- data.tar.gz: d09d375e92c154445d533b93e66a9357b6bc92a5069ac52994ea8b1aebeef7dc
3
+ metadata.gz: 26017194b09b982f3a18f04ffe7803cd357d8f33b2267bcd7f10018c3cc3e56b
4
+ data.tar.gz: a63efba234ef02faeadd27b93ad3048edb4a7836944a089329e3513aa110de29
5
5
  SHA512:
6
- metadata.gz: f23cfba2d99c605a42843f3cc90737e541947f413d2391af15f51a719d7da313376ac95ed70d9301d1fa6123c754d9fa3dfe7a722ae927e498bc51be9ec79c99
7
- data.tar.gz: fc21ddd8b5ed3ef5dbd29c70d626333ef06cd1926965d22e47f8af145bf47635146c5bebf3f13c8f93840a22a57953745d9db685c1b18c2cd53b222779b8b2b1
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
  ```
@@ -3,7 +3,6 @@ class CreateRailsOptions < ActiveRecord::Migration[6.1]
3
3
  create_table :rails_options do |t|
4
4
  t.string :slug
5
5
  t.string :value
6
- t.text :content
7
6
 
8
7
  t.timestamps
9
8
  end
@@ -1,3 +1,3 @@
1
1
  module RailsOptions
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-16 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails