activetracker 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/lib/active_tracker/model.rb +1 -1
- data/lib/active_tracker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c8b98873c61fab7441481fb3ce9d665459fb0de0a0ab241368bfa4700e9bb9
|
4
|
+
data.tar.gz: 6d86d4fafa0c5dd79fde9ad8bd795bf41e4233f992a204e5e5cc047a9ba37897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14d136b2ef08f6e3a67848d7be7b73d8a56f57765005cc0d6dc900cc7b32b6132ccb34fb02f5230c7c41818b590bdbafcaccdcaff2655c5624a1a3526962c22e
|
7
|
+
data.tar.gz: 771b9d2fa42dfe26b519323ebc11ae48e63c1a80e41b5fa2d72671a5ddcb3b702de237c04320f3a72b715a0a15423e62af8b2cd81aed665d91e14dd9106f731e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/active_tracker/model.rb
CHANGED
@@ -112,7 +112,7 @@ module ActiveTracker
|
|
112
112
|
|
113
113
|
def initialize(key, value, persisted = true)
|
114
114
|
@attrs = {key: key, persisted: persisted}
|
115
|
-
key.gsub
|
115
|
+
key = key.gsub(/^A#{PREFIX}/, "")
|
116
116
|
parts = key.split("/")
|
117
117
|
_ = parts.shift # Starts with a /
|
118
118
|
_ = parts.shift # then comes PREFIX
|