isaca-rails 0.4.6 → 0.4.7
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/lib/isaca/rails/authentication.rb +2 -8
- data/lib/isaca/rails/user.rb +1 -1
- data/lib/isaca/rails/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: 0dde20172b97d248b8e2e00fb9c46eaf43cea9a6db696ea1b9c417b6ef81f8d2
|
|
4
|
+
data.tar.gz: 7a0b3892c71331f8ff528ee72106b5479d59e1656dd7d99556312677bccd68f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ab36a1da69542c74981be964c30384570c886ade06124a9cda4c7c89da06612c50127988262660e01f4f04f4fc7607a798cd285bdefd9dc2e2a5a19d3f152a6
|
|
7
|
+
data.tar.gz: 6708f386489b9c44282c17d29affb64b5a0a42076baaf1412a11fcaee1cba1607464b49e3cd44e826486891546527883ae39129bafb754cee4bba8365eb45cc3
|
|
@@ -160,14 +160,8 @@ module Isaca
|
|
|
160
160
|
klass = Isaca::Rails.configuration.user_model
|
|
161
161
|
|
|
162
162
|
# Fetch the first record with a matching imis id or initialize a new record with the given user data.
|
|
163
|
-
@current_isaca_user = klass.
|
|
164
|
-
|
|
165
|
-
# Update the old user record or save a new user record
|
|
166
|
-
if @current_isaca_user.new_record?
|
|
167
|
-
@current_isaca_user.save
|
|
168
|
-
else
|
|
169
|
-
@current_isaca_user.update_attributes(attributes)
|
|
170
|
-
end
|
|
163
|
+
@current_isaca_user = klass.where(imis_id: isaca_user.imis_id).first_or_initialize
|
|
164
|
+
@current_isaca_user.update_attributes(attributes)
|
|
171
165
|
|
|
172
166
|
# Temporal data so we do not need dedicated columns for this but we do need to associate it with the user
|
|
173
167
|
@current_isaca_user.privacy = isaca_user.privacy
|
data/lib/isaca/rails/user.rb
CHANGED
data/lib/isaca/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isaca-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Orahood
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-04-
|
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|