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 +4 -4
- data/lib/panda_pal/concerns/ability_helper.rb +3 -1
- data/lib/panda_pal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb0e4fb14c2e0d6b9e35ec6dd8e865c428d903ecea13870eaaf573c3799af975
|
|
4
|
+
data.tar.gz: 93e7c30bd6501db96b4a5cadd4b5d412b67992f292d39959496f3962c38f0963
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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?
|
data/lib/panda_pal/version.rb
CHANGED