isaca-rails 0.5.3 → 0.5.4

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: 9fe2347a3e86e465db9c9ec7730bf2807afc0708311667c165a6b0c51e1c0a93
4
- data.tar.gz: 84cfaab2259df97943583d60810b0fb540f6b82b0004f6ac22cbcaf4b64cbd2b
3
+ metadata.gz: 700f73c4157cab70ecffb3b4254b656d0a287edbdfa38954a7d5745fb12b6825
4
+ data.tar.gz: 3670014ec5c3bffb8fa6ebd48d6d2addaf4c1014e2199938260e3d112264a956
5
5
  SHA512:
6
- metadata.gz: 55eb6b4c84f4d315ca87869d745fb1bc6c6cfeaa146795839105491ca9aa3c134a8daf814ee9826adaac11c9e27624639318cfaa0c32d3861727236e35a80c11
7
- data.tar.gz: c570e50b9fd9811faa85c2453c7bd30904bb391ad43a3599264f359b4363cd046967975a7de29dbedf209d29aa507a0eb183139b46db2a913eec6c3e451d3ee9
6
+ metadata.gz: 34ce9a5babf90bd10becd5ff53ace1dab4d1150e901775c0429719d1f125365fd5a3a69378a608829b1e8eae62dd777e6ec5fa548da428e5829440d59d93835f
7
+ data.tar.gz: b65bc3a5e3386a8b867bf31fb1019406d98d141b64c22999b667dbf150101be8324b8e8e9c944dd2f7ed1e35d23d8270bd3ef2b970aa5bdb3335c3a3e5743145
@@ -41,8 +41,10 @@ module Isaca
41
41
  if @current_isaca_user
42
42
  @current_isaca_user
43
43
  else
44
- @current_isaca_user = Isaca::Rails.configuration.user_model.find(session[:user_id])
45
- end
44
+ unless session[:user_id].blank?
45
+ @current_isaca_user = Isaca::Rails.configuration.user_model.find(session[:user_id])
46
+ end
47
+ end
46
48
  end
47
49
 
48
50
  # Method used to to login a user and set the token
@@ -1,5 +1,5 @@
1
1
  module Isaca
2
2
  module Rails
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isaca-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Orahood