Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Fix value conversion method
Browse files Browse the repository at this point in the history
In Solidus, this method has changed from having two parameters to
having three. This updates the method here to match, so we avoid
any too_many_parameter errors. Most noticably, this was affecting
our test suite.

See: solidusio/solidus@e05da68
  • Loading branch information
seand7565 committed Oct 8, 2020
1 parent 091a6f9 commit 10e4af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solidus_paypal_braintree/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def to_hash(preference_string)
JSON.parse(preference_string.gsub("=>", ":"))
end

def convert_preference_value(value, type)
def convert_preference_value(value, type, preference_encryptor = nil)
if type == :hash && value.is_a?(String)
value = to_hash(value)
end
Expand Down

0 comments on commit 10e4af5

Please sign in to comment.