trackstamps-reborn 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/trackstamps/reborn/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d4a0992b729ef34a241b1db94c19f531768b87742137ed0d11559009f866d31
|
4
|
+
data.tar.gz: a4a67c82bce9c0700d3bf33acaa85f57883a32dc78f0598decd7791ea41d6fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce723ac73cf730e8a24a535a0ea7a6b7546e5586959500896aee8d05fdbe6d077f15e3fd0e026e4786a562fee713920fe8e13d63df7c8611da17c65ade52afc
|
7
|
+
data.tar.gz: 7152a2a596e88ee180821f278cbb7407e9db282374bdb8bc2690087223c9139afc3eef6be333b237c6ed531eecff7a3846b0eb693dac9e8ed0462541c900550e
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
Track which user created or updated record in Rails.
|
8
8
|
|
9
|
+
Inspired and part of code used from original [Trackstamps](https://github.com/mshahzadtariq/trackstamps) gem
|
10
|
+
|
9
11
|
---
|
10
12
|
|
11
13
|
- [Quick start](#quick-start)
|
@@ -32,6 +34,20 @@ class ApplicationController < ActionController::Base
|
|
32
34
|
end
|
33
35
|
```
|
34
36
|
|
37
|
+
### Override implementation for current user
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
module TrackstampsOverride
|
41
|
+
|
42
|
+
extend ActiveSupport::Concern
|
43
|
+
include Trackstamps::Reborn
|
44
|
+
|
45
|
+
def trackstamps_current_user
|
46
|
+
User.last
|
47
|
+
end
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
35
51
|
### Generate migrations
|
36
52
|
```
|
37
53
|
rails generate trackstamps:reborn:migration table_name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackstamps-reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dušan
|
@@ -14,16 +14,22 @@ dependencies:
|
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '5.2'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '5.2'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8'
|
27
33
|
description:
|
28
34
|
email:
|
29
35
|
- dusan.uveric@mitigate.dev
|