user_activity 0.1.2 → 0.1.3
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/README.md +11 -0
- data/lib/user_activity.rb +1 -1
- data/lib/user_activity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30739583ae78074dff366ea0997c8f2b2f22eb94
|
4
|
+
data.tar.gz: e17d35d661923d039df68c64cb4bc3b015c2a23e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b28a96d3610ccc6d4b8b1fd747589ca896c454d6fada0eff2aea20dd7cc0c5640b311c6e28aefabd3a7ee76d3d96550bad48e15df501abf3413777bec732b7c
|
7
|
+
data.tar.gz: '03187a867bdf5eb819c3aef5f12cae423082dd93efc90ba82396e4885af61afc5ff618e023f15a195cf096309dae2c6052358c3cd3ed7c86fb6b4056e75d383e'
|
data/README.md
CHANGED
@@ -67,6 +67,17 @@ class ApplicationController < ActionController::Base
|
|
67
67
|
end
|
68
68
|
```
|
69
69
|
|
70
|
+
### Define activity name
|
71
|
+
To define activity name and record to database, need to run the command below:
|
72
|
+
```bash
|
73
|
+
$ rails generate installer user_activity
|
74
|
+
```
|
75
|
+
That will create 2 files.
|
76
|
+
- config/initializers/user_activity.rb
|
77
|
+
- config/user_activity.yml
|
78
|
+
|
79
|
+
First is config/initializer/user_activity.rb configuration file that load yml to configuration attribute, the second is config/user_activity.yml this file store activity define and you can define the activity here.
|
80
|
+
|
70
81
|
## Contributing
|
71
82
|
Contribution directions go here.
|
72
83
|
|
data/lib/user_activity.rb
CHANGED