File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class UserSession
11
11
property username : String ? = " example"
12
12
end
13
13
14
- Session .configure do | c |
14
+ Session .configure do
15
15
c.on_started = - > (sid : String , data : Session ::Databag ) { puts " Session started - Id: #{ sid } Username: #{ data.username } " }
16
16
c.on_deleted = - > (sid : String , data : Session ::Databag ) { puts " Session Revoke - Id: #{ sid } Username: #{ data.username } " }
17
17
end
Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ module Message
35
35
if valid_message?(data.to_s, digest.to_s)
36
36
String .new(decode(data.to_s))
37
37
end
38
- rescue argument_error : ArgumentError
39
- return if argument_error .message =~ %r{invalid base64}
40
- raise argument_error
38
+ rescue ex : ArgumentError
39
+ return if ex .message =~ %r{invalid base64}
40
+ raise ex
41
41
end
42
42
43
43
def verify (signed_message : String ) : String
You can’t perform that action at this time.
0 commit comments