Files
openfoodnetwork/app/models/spree/gateway/pin.rb
Matt-Yorkley 3896644a04 Remove attr_accessible declarations
Needed for using Strong Parameters in Rails 4
2020-02-22 14:03:16 +01:00

16 lines
329 B
Ruby

module Spree
class Gateway::Pin < Gateway
preference :api_key, :string
def provider_class
ActiveMerchant::Billing::PinGateway
end
def options_with_test_preference
options_without_test_preference.merge(test: preferred_test_mode)
end
alias_method_chain :options, :test_preference
end
end