lib/active_merchant/billing/gateways/trust_commerce.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/trust_commerce.rb in activemerchant-1.102.0

- old
+ new

@@ -262,23 +262,24 @@ def recurring(money, creditcard, options = {}) ActiveMerchant.deprecated RECURRING_DEPRECATION_MESSAGE requires!(options, [:periodicity, :bimonthly, :monthly, :biweekly, :weekly, :yearly, :daily]) - cycle = case options[:periodicity] - when :monthly - '1m' - when :bimonthly - '2m' - when :weekly - '1w' - when :biweekly - '2w' - when :yearly - '1y' - when :daily - '1d' - end + cycle = + case options[:periodicity] + when :monthly + '1m' + when :bimonthly + '2m' + when :weekly + '1w' + when :biweekly + '2w' + when :yearly + '1y' + when :daily + '1d' + end parameters = { :amount => amount(money), :cycle => cycle, :verify => options[:verify] || 'y',