lib/billomat/gateway.rb in billomat-0.4.1 vs lib/billomat/gateway.rb in billomat-1.0.0
- old
+ new
@@ -87,10 +87,10 @@
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'X-BillomatApiKey' => config.api_key,
'X-AppId' => config.app_id,
'X-AppSecret' => config.app_secret
- }.reject { |_, val| val.nil? }
+ }.compact
end
# @return [Billomat::Configuration] the global gem configuration
#
# :reek:UtilityFunction because it's a shorthand