panda_pal 5.18.1 → 5.18.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cfa6473dc16edac94d626e45b19ffba9fad24f213a8696808237685a20a4131
4
- data.tar.gz: 9586403513860b1c18ac4203d468fd80ac48b7e13a4749ef7b75992e7b64241d
3
+ metadata.gz: eb0e4fb14c2e0d6b9e35ec6dd8e865c428d903ecea13870eaaf573c3799af975
4
+ data.tar.gz: 93e7c30bd6501db96b4a5cadd4b5d412b67992f292d39959496f3962c38f0963
5
5
  SHA512:
6
- metadata.gz: 945a38a43d4107b62c3f2d9f2097ebf5345157d7c30fa28afccf177c96f71894b08b84cac3612c0954ebccf73b51425fc2d7c7fefab509578bbb4f83be5ce403
7
- data.tar.gz: 6dac2d051c4f718db105efa8b37d43de205c559f05800b07a0d671d983db9426f9831b80aae1cffa408da3fa57feb1aa5c2e39b41c3ff181c801d60f5da0604d
6
+ metadata.gz: 4ed68a456f64341cd6627e08f6b24b7936e75b39b077d2d458695db7e7be58ddd723cfcf44b095001c411b66993971b042a33d8bc62f7f2aa07d95e36773568d
7
+ data.tar.gz: '08ccb27dd49356d5a51d020cd93cb86626ef1f108b99fcc75f38cd2a147fbc28859570cdd7dbafe7ef37d74b7ca08aa0a09793bc3d6b6e1ebac5c64158aec9aa'
@@ -45,7 +45,9 @@ module PandaPal::Concerns
45
45
  raise "Ability class needs to set @rails_session or @controller to use this feature"
46
46
  end
47
47
 
48
- @rails_session ||= @controller.session unless defined?(@rails_session)
48
+ @rails_session ||= @controller&.session
49
+
50
+ @rails_session
49
51
  end
50
52
 
51
53
  # Delegate legacy AbilityHelper methods to panda_pal_session. TODO Should such direct usage be considered deprecated?
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = '5.18.1'
2
+ VERSION = '5.18.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.1
4
+ version: 5.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev