module Spree::Core::ControllerHelpers::StrongParameters
Public Instance Methods
permitted_attributes()
click to toggle source
# File lib/spree/core/controller_helpers/strong_parameters.rb, line 5 def permitted_attributes Spree::PermittedAttributes end
permitted_checkout_attributes()
click to toggle source
# File lib/spree/core/controller_helpers/strong_parameters.rb, line 19 def permitted_checkout_attributes permitted_attributes.checkout_attributes + [ bill_address_attributes: permitted_address_attributes, ship_address_attributes: permitted_address_attributes, payments_attributes: permitted_payment_attributes, shipments_attributes: permitted_shipment_attributes ] end
permitted_order_attributes()
click to toggle source
# File lib/spree/core/controller_helpers/strong_parameters.rb, line 28 def permitted_order_attributes permitted_checkout_attributes + [ line_items_attributes: permitted_line_item_attributes ] end
permitted_payment_attributes()
click to toggle source
# File lib/spree/core/controller_helpers/strong_parameters.rb, line 13 def permitted_payment_attributes permitted_attributes.payment_attributes + [ source_attributes: permitted_source_attributes ] end
permitted_product_attributes()
click to toggle source
# File lib/spree/core/controller_helpers/strong_parameters.rb, line 34 def permitted_product_attributes permitted_attributes.product_attributes + [ :store_id, product_properties_attributes: permitted_product_properties_attributes ] end