active_record_mask 0.1.0 → 0.1.1
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/.gitignore +1 -0
- data/README.md +3 -0
- data/lib/active_record_mask/active_record_mask.rb +1 -1
- data/lib/active_record_mask/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c0085b994ab22e649e96f027871390d9074f7143711f96ab2fff2d13adf5cdc
|
|
4
|
+
data.tar.gz: ef44b96e894b2a6935cb9b8ca45adc837ec51af65add814619d23db9c94c51ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8bc76a5b4942cecd77fd4020bd5966a5cc39d4dc12b972b633c67877a1fbfa80fe08a2663ff3974bff813870ee65bb67417662cace843656c2ce9a909debdd4
|
|
7
|
+
data.tar.gz: 178da236b8f8a4bcfd30479db07655fd849c3a4139498cbf2017abc118fc83c920a8331ed553e6a52015ef472e636e104bb565a2d8fc7cab6c7b73863f2d06b2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
[](https://github.com/sventantau/active_record_mask/actions/workflows/ruby.yml)
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
# ActiveRecordMask
|
|
2
5
|
|
|
3
6
|
ActiveRecordMask is a small ruby library that provides an easy way to mask read access to database attributes and associations in ActiveRecord objects.
|
|
@@ -46,7 +46,7 @@ module ActiveRecordMask
|
|
|
46
46
|
private
|
|
47
47
|
|
|
48
48
|
def initialize_protector
|
|
49
|
-
@show_real_data
|
|
49
|
+
@show_real_data ||= self.class.show_real_data_by_default
|
|
50
50
|
|
|
51
51
|
self.class.reflect_on_all_associations.each do |reflection|
|
|
52
52
|
association = reflection.name
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_record_mask
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sven Tantau
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|