Class: Spree::CheckoutAdditionalAttributes

Inherits:
Array
  • Object
show all
Defined in:
lib/spree/permitted_attributes.rb

Instance Method Summary collapse

Instance Method Details

#<<(*attributes) ⇒ Object



178
179
180
181
182
# File 'lib/spree/permitted_attributes.rb', line 178

def <<(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :<<)
end

#prepend(*attributes) ⇒ Object Also known as: unshift



191
192
193
194
195
# File 'lib/spree/permitted_attributes.rb', line 191

def prepend(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :prepend)
end

#push(*attributes) ⇒ Object Also known as: append



184
185
186
187
188
# File 'lib/spree/permitted_attributes.rb', line 184

def push(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :push)
end