Class: Spree::CheckoutAdditionalAttributes

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

Instance Method Summary collapse

Instance Method Details

#<<(*attributes) ⇒ Object



171
172
173
174
175
# File 'lib/spree/permitted_attributes.rb', line 171

def <<(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :<<)
end

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



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

def prepend(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :prepend)
end

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



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

def push(*attributes)
  super

  inject_attributes_to_all_steps(attributes, :push)
end