Sha256: 9abdd0bb269f5c32e48bd4f9742922e8d24da0d2cc3b9d77f5dd33c75dbe7702
Contents?: true
Size: 601 Bytes
Versions: 29
Compression:
Stored size: 601 Bytes
Contents
module Spree module Api module V2 module Platform class PaymentMethodsController < ResourceController private def model_class Spree::PaymentMethod end def spree_permitted_attributes preferred_attributes = [] if action_name == 'update' resource.defined_preferences.each do |preference| preferred_attributes << "preferred_#{preference}".to_sym end end super + preferred_attributes end end end end end end
Version data entries
29 entries across 29 versions & 3 rubygems