wfl_simple_activity 0.1.19 → 0.1.20

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: f8ad828fbd89cb1717a5b0e609ad9f67bd21601bab1cf719daeb07c6bf21f62c
4
- data.tar.gz: 40d43d800db1b91b4b7a0845e68c14a38bac9969e776e192fdbca73070babb40
3
+ metadata.gz: c0f43a46449f47092082faf19b707e8dd164b3cebd93d16ff64e42ca5dee8359
4
+ data.tar.gz: fccd7bdbb3db2bc5fa43c11d924605c926830ebe46aa8e78c0ea924c9e15210d
5
5
  SHA512:
6
- metadata.gz: bbf626028b0c70af906514d1507414f859d1abbb06f3c04137631c9027d1f072fede1d448321900d9103cc78cb545c9b9c4861253a8ab010875df0ea5d046677
7
- data.tar.gz: 1ebdf298b8f429097934dbc33523aa66da0db51cd6fdb6566907a1815942a13710f853f4c18e268f3ed5e2c14d735e588d9a2e4eb79a95cd2b4a25792ba467f4
6
+ metadata.gz: d21e1e3d066d733b8563763d21432e5258c7585b9042466958251f5e50cf44f4bb9bae3dc18f5d66c4b1c6a800f7ff0ea38877130cd315a5902716186cabdf8c
7
+ data.tar.gz: 7e695cf6fc28c7ec7be33b885cb4a3cb222bfca623bc8afd950e73d54283e2b56a9d221d68955346d3b0f3790ef8ecc04e264807526d05456b464fffcd56416e
data/README.md CHANGED
@@ -37,6 +37,12 @@ Or install it yourself as:
37
37
 
38
38
  * 生成的migration文件中需自行migration版本指定对应的版本
39
39
 
40
+ * 例如:
41
+ ```ruby
42
+ class CreateWflActivities < ActiveRecord::Migration[5.1]
43
+ end
44
+ ```
45
+
40
46
  * 如果需要记录current_user 或者 调用其他在controller中的方法,需要在 `application_controller.rb`中 `include PublicActivity::StoreController`
41
47
 
42
48
  * 自行获取 controller 上下文:
@@ -11,6 +11,7 @@ class CreateWflActivities < ActiveRecord::Migration
11
11
  t.text :model_changes
12
12
  t.integer :school_id
13
13
  t.string :description
14
+ t.integer :status
14
15
  t.timestamps
15
16
  end
16
17
 
@@ -10,6 +10,7 @@ module WflActivity
10
10
  request_params: proc {|controller, model| controller&.params&.to_h}
11
11
  }
12
12
  )
13
+ enum status: [:success, :failed]
13
14
 
14
15
  # 如果不需要删除记录
15
16
  # has_many :activities, as: :trackable, class_name: 'PublicActivity::Activity', dependent: :destroy
@@ -1,3 +1,3 @@
1
1
  module WflSimpleActivity
2
- VERSION = "0.1.19"
2
+ VERSION = "0.1.20"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wfl_simple_activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - longhaoran
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: public_activity