@@ -59,8 +59,7 @@ client-server communication (like requesting simple registration data).
5959### Introduction
6060
6161` masq2 ` adds ORACLE database support, as well as support for
62- Rails 5.2, 6.0, 6.1, 7.0, 7.1, 7.2, 8.0,
63- which ` masq ` never had.
62+ Rails 6.1, 7.0, 7.1, 7.2, 8.0, which ` masq ` never had.
6463
6564The main functionality is in the server controller, which is the endpoint for incoming
6665OpenID requests. The server controller is supposed to only interact with relying parties
@@ -78,7 +77,6 @@ Rails 5.2.8.1 is a security patch release to fix CVE-2022-32224.
7877See: https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
7978
8079The patch (Rails v5.2.8.1) causes an error with ` masq ` v0.3.4
81- (... actually it doesn't work at all on Rails v5, but some forks have been fixed):
8280
8381```
8482Psych::DisallowedClass: Tried to load unspecified class: ActiveSupport::HashWithIndifferentAccess
@@ -91,14 +89,15 @@ serialize :parameters, Hash
9189
9290so we instead switch to serializing as JSON:
9391``` ruby
94- serialize :parameters , JSON
92+ # serialize :parameters, JSON # Would be for Rails 5.2/6.0, but this gem has already dropped support for Rails 5.2/6.0
93+ serialize :parameters , type: Hash , coder: JSON
9594```
9695
9796If an implementation needs to continue using the serialized Hash,
9897you will need to override the definition by reopening the model, and adding:
9998
10099``` ruby
101- serialize :parameters , Hash
100+ serialize :parameters , type: Hash , coder: Hash
102101```
103102
104103In addition, one of the following is also needed.
0 commit comments