isaca-rails 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7207131060a5c23b082caef1af6e6189638b4a7fed5092c39d3ef6a3928d4ae5
4
- data.tar.gz: 3057cfea6dce1ec4c083e9e81cd5a67d12be8cb53edbb7ca1779bf4e0b40e4ca
3
+ metadata.gz: 0dde20172b97d248b8e2e00fb9c46eaf43cea9a6db696ea1b9c417b6ef81f8d2
4
+ data.tar.gz: 7a0b3892c71331f8ff528ee72106b5479d59e1656dd7d99556312677bccd68f2
5
5
  SHA512:
6
- metadata.gz: 6e9f19c73ad8bc73ec5044b1d7a6bbf976858a1b3c0b5345432d92d5a593b517001c45cc73aa13dcfeb05f8b37d0ff997cb1cc48edea37fe258c0c132c29d0f2
7
- data.tar.gz: c153bcf2826ba59aa15d6c06485bd03ccc139a199eefa5897134603de3df0c5a0dd2213097f4f9f39b7ea7f9ed91e25e17122a0e0b553b407f0843f1761ade36
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.create_with(attributes).find_or_initialize_by(imis_id: isaca_user.imis_id)
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
@@ -4,7 +4,7 @@ module Isaca
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- attr_accessor :privacy, :marketing, :country
7
+ attr_accessor :privacy, :marketing
8
8
 
9
9
  has_many :claims
10
10
 
@@ -1,5 +1,5 @@
1
1
  module Isaca
2
2
  module Rails
3
- VERSION = '0.4.6'
3
+ VERSION = '0.4.7'
4
4
  end
5
5
  end
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.6
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-22 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails