Sha256: 554d80f16019531c0f69800485f5e64638e7929dac2fc0d68dcf1d53b0d07d81

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

module SpreeItIsAPresent
  module Spree
    module CheckoutControllerDecorator
      extend ActiveSupport::Concern

      private

      def permitted_checkout_attributes
        super + [ present_note_attributes: present_note_attributes ]
      end

      def present_note_attributes
        %i[recipient_name dedication]
      end
    end
  end
end

Spree::CheckoutController.prepend SpreeItIsAPresent::Spree::CheckoutControllerDecorator

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_it_is_a_present-0.0.6 app/controllers/spree_it_is_a_present/spree/checkout_controller_decorator.rb
spree_it_is_a_present-0.0.5 app/controllers/spree_it_is_a_present/spree/checkout_controller_decorator.rb
spree_it_is_a_present-0.0.4 app/controllers/spree_it_is_a_present/spree/checkout_controller_decorator.rb
spree_it_is_a_present-0.0.2 app/controllers/spree_it_is_a_present/spree/checkout_controller_decorator.rb