We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c384392 commit fa327d7Copy full SHA for fa327d7
app/models/user.rb
@@ -43,10 +43,7 @@ def token=(value)
43
end
44
45
def token
46
- encrypted_token = self[:token]
47
- unless encrypted_token.nil?
48
- crypt.decrypt_and_verify(encrypted_token)
49
- end
+ crypt.decrypt_and_verify(self[:token]) if self[:token]
50
51
52
def payment_gateway_subscription
app/models/violation.rb
@@ -21,10 +21,7 @@ def source=(value)
21
22
23
def source
24
- encrypted_source = self[:source]
25
- unless encrypted_source.nil?
26
- crypt.decrypt_and_verify(encrypted_source)
27
+ crypt.decrypt_and_verify(self[:source]) if self[:source]
28
29
30
private
0 commit comments