voltron-encrypt 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/voltron/encrypt/version.rb +1 -1
- data/lib/voltron/encryptable.rb +2 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a27cb8b24a455ea9ba565de9ec27da78c2fd2a1d6d569f9dc5fb8e5d110bdd7
|
4
|
+
data.tar.gz: 7aa7088bd89938af0a571608556abc5c3f465e3cffe9f637811ec411a58212a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ae01a29887bbe7b80831fa5dcbf781725f8b87336ed3a45c09414f19e41400e0322282754ffb860f016902e485ac196fcac9bbb5c4b58f0416da4aca344d3c
|
7
|
+
data.tar.gz: c4999ff0069fd8f24940f1311bcbb6447ceb60e168e3d9e57a7c2e877f73ff2a6a7aadcb3f92e66eb3ceeb78e5372567a5679e1189d5ae1484d6d683fd8e219d
|
data/lib/voltron/encryptable.rb
CHANGED
@@ -64,8 +64,7 @@ module Voltron
|
|
64
64
|
|
65
65
|
module InstanceMethods
|
66
66
|
def assign_attributes(new_attributes)
|
67
|
-
|
68
|
-
belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id", class_name: (b.options[:class_name] || b.name).to_s.classify } }
|
67
|
+
belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id".to_sym, class_name: (b.options[:class_name] || b.name).to_s.classify } }
|
69
68
|
|
70
69
|
belongs.each do |belong|
|
71
70
|
begin
|
@@ -82,8 +81,7 @@ module Voltron
|
|
82
81
|
end
|
83
82
|
|
84
83
|
def update_attributes(attributes)
|
85
|
-
|
86
|
-
belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id", class_name: (b.options[:class_name] || b.name).to_s.classify } }
|
84
|
+
belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id".to_sym, class_name: (b.options[:class_name] || b.name).to_s.classify } }
|
87
85
|
|
88
86
|
belongs.each do |belong|
|
89
87
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voltron-encrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hainer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -183,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
|
-
|
187
|
-
rubygems_version: 2.7.6
|
186
|
+
rubygems_version: 3.0.6
|
188
187
|
signing_key:
|
189
188
|
specification_version: 4
|
190
189
|
summary: Enables base 64 encoded ids on rails models
|