lib/pagseguro/notification.rb in pagseguro-0.1.7.beta.0 vs lib/pagseguro/notification.rb in pagseguro-0.1.7.beta.1
- old
+ new
@@ -37,10 +37,10 @@
attr_accessor :params
# Expects the params object from the current request
def initialize(params, token = nil)
@token = token
- @params = normalize(params)
+ @params = PagSeguro.utf8? ? params : normalize(params)
end
# Normalize the specified hash converting all data to UTF-8
def normalize(hash)
each_value(hash) do |value|